mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-26 21:36:26 +00:00
Don't need video_driver_current_msg anymore
This commit is contained in:
parent
39e9d5c5ba
commit
a23598e553
@ -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++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user