Don't need video_driver_current_msg anymore

This commit is contained in:
twinaphex 2015-12-06 14:32:30 +01:00
parent 39e9d5c5ba
commit a23598e553

View File

@ -1816,8 +1816,6 @@ static bool video_pixel_frame_scale(const void *data,
void video_driver_frame(const void *data, unsigned width,
unsigned height, size_t pitch)
{
/* Last message given to the video driver */
static char video_driver_current_msg[256];
unsigned output_width = 0;
unsigned output_height = 0;
unsigned output_pitch = 0;
@ -1862,14 +1860,9 @@ void video_driver_frame(const void *data, unsigned width,
msg = rarch_main_msg_queue_pull();
*video_driver_current_msg = 0;
if (msg)
strlcpy(video_driver_current_msg, msg, sizeof(video_driver_current_msg));
if (!current_video || !current_video->frame(
video_driver_data, data, width, height, video_driver_frame_count,
pitch, video_driver_current_msg))
pitch, msg))
video_driver_ctl(RARCH_DISPLAY_CTL_UNSET_ACTIVE, NULL);
video_driver_frame_count++;