summaryrefslogtreecommitdiffstats
path: root/minuitwrp/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'minuitwrp/graphics.cpp')
-rw-r--r--minuitwrp/graphics.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/minuitwrp/graphics.cpp b/minuitwrp/graphics.cpp
index 81e77a630..d914eef3d 100644
--- a/minuitwrp/graphics.cpp
+++ b/minuitwrp/graphics.cpp
@@ -157,7 +157,11 @@ gr_surface gr_render_circle(int radius, unsigned char r, unsigned char g, unsign
surface->height = diameter;
surface->stride = diameter;
surface->data = (GGLubyte*)data;
+#if defined(RECOVERY_BGRA)
+ surface->format = GGL_PIXEL_FORMAT_BGRA_8888;
+#else
surface->format = GGL_PIXEL_FORMAT_RGBA_8888;
+#endif
for(ry = -radius; ry <= radius; ++ry)
for(rx = -radius; rx <= radius; ++rx)