aboutsummaryrefslogtreecommitdiff
path: root/cocoa.m
diff options
context:
space:
mode:
Diffstat (limited to 'cocoa.m')
-rw-r--r--cocoa.m7
1 files changed, 6 insertions, 1 deletions
diff --git a/cocoa.m b/cocoa.m
index 9551affa34..501fb705b0 100644
--- a/cocoa.m
+++ b/cocoa.m
@@ -164,7 +164,12 @@ static void cocoa_resize(DisplayState *ds, int w, int h)
ds->depth = device_bpp;
ds->width = w;
ds->height = h;
-
+#ifdef __LITTLE_ENDIAN__
+ ds->bgr = 1;
+#else
+ ds->bgr = 0;
+#endif
+
current_ds = *ds;
}