summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Lucina <mato@kotelna.sk>2010-02-03 18:30:56 +0100
committerMartin Lucina <mato@kotelna.sk>2010-02-03 18:30:56 +0100
commit9bbe724dc978c8f6f650bef54678d5588a77428a (patch)
treedcf87f656e1297e7c3f0099e71a5ded8b4245f0e
parentb24eaf88f62bd4ef913a9b51692d754de9a1f535 (diff)
Correct RGBA mask used in SDL_CreateRGBSurfaceFrom()
This fixes the funky colours :-)
-rw-r--r--zmq-camera.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/zmq-camera.c b/zmq-camera.c
index 5469808..5123553 100644
--- a/zmq-camera.c
+++ b/zmq-camera.c
@@ -590,7 +590,10 @@ int main (int argc, char *argv [])
image_height, /* Height */
24, /* Depth */
image_width * 3, /* Scanline pitch */
- 0, 0, 0, 0); /* TODO: RGBA mask */
+ 0x000000ff, /* Red */
+ 0x0000ff00, /* Green */
+ 0x00ff0000, /* Blue */
+ 0); /* No alpha */
/* Blit surface to screen. */
SDL_BlitSurface (rgb_surface, NULL, screen, NULL);