diff options
Diffstat (limited to '')
-rw-r--r-- | minuitwrp/graphics_utils.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/minuitwrp/graphics_utils.cpp b/minuitwrp/graphics_utils.cpp index 6ce570484..67c836ed5 100644 --- a/minuitwrp/graphics_utils.cpp +++ b/minuitwrp/graphics_utils.cpp @@ -52,7 +52,12 @@ int gr_save_screenshot(const char *dest) surface.height = gr_mem_surface.height; surface.stride = gr_mem_surface.stride; surface.data = img_data; + +#if defined(RECOVERY_BGRA) + surface.format = GGL_PIXEL_FORMAT_BGRA_8888; +#else surface.format = GGL_PIXEL_FORMAT_RGBA_8888; +#endif gglInit(&gl); gl->colorBuffer(gl, &surface); |