1
0
mirror of https://github.com/libretro/RetroArch synced 2025-03-21 22:20:59 +00:00

Merge pull request from heuripedes/screenshot-fix

Fix incorrect screenshot colors
This commit is contained in:
Twinaphex 2015-06-17 18:21:35 +02:00
commit 857ee461c1

@ -94,14 +94,14 @@ static void video_frame(const void *data, unsigned width,
if (!driver->video_active) if (!driver->video_active)
return; return;
video_driver_cached_frame_set(data, width, height, pitch);
if (video_frame_scale(data, width, height, pitch)) if (video_frame_scale(data, width, height, pitch))
{ {
data = driver->scaler_out; data = driver->scaler_out;
pitch = driver->scaler.out_stride; pitch = driver->scaler.out_stride;
} }
video_driver_cached_frame_set(data, width, height, pitch);
/* Slightly messy code, /* Slightly messy code,
* but we really need to do processing before blocking on VSync * but we really need to do processing before blocking on VSync
* for best possible scheduling. * for best possible scheduling.