This commit is contained in:
twinaphex 2019-07-24 16:51:23 +02:00
parent 741a119574
commit d4f7a4a17a
2 changed files with 2 additions and 9 deletions

View File

@ -3174,7 +3174,7 @@ static bool command_event_init_core(enum rarch_core_type *data)
#endif
/* reset video format to libretro's default */
video_driver_set_pixel_format(RETRO_PIXEL_FORMAT_0RGB1555);
video_driver_pix_fmt = RETRO_PIXEL_FORMAT_0RGB1555;
info.env = rarch_environment_cb;
core_set_environment(&info);
@ -6673,7 +6673,7 @@ static bool rarch_environment_cb(unsigned cmd, void *data)
return false;
}
video_driver_set_pixel_format(pix_fmt);
video_driver_pix_fmt = pix_fmt;
break;
}
@ -17250,11 +17250,6 @@ enum retro_pixel_format video_driver_get_pixel_format(void)
return video_driver_pix_fmt;
}
void video_driver_set_pixel_format(enum retro_pixel_format fmt)
{
video_driver_pix_fmt = fmt;
}
/**
* video_driver_cached_frame:
*

View File

@ -1684,8 +1684,6 @@ void video_driver_set_aspect_ratio_value(float value);
enum retro_pixel_format video_driver_get_pixel_format(void);
void video_driver_set_pixel_format(enum retro_pixel_format fmt);
void video_driver_cached_frame_set(const void *data, unsigned width,
unsigned height, size_t pitch);