]> git.sesse.net Git - movit/blobdiff - main.cpp
Replace LAST_INPUT with INPUT.
[movit] / main.cpp
index 0a92aed593826e091b82b437482ae90c6d238eeb..b41c9ed0789f219d8eba163457e0abe61098cda9 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -96,14 +96,14 @@ unsigned char *load_image(const char *filename, unsigned *w, unsigned *h)
        rgba_fmt.Rloss = rgba_fmt.Gloss = rgba_fmt.Bloss = rgba_fmt.Aloss = 0;
 
        // NOTE: Assumes little endian.
-       rgba_fmt.Rmask = 0x000000ff;
+       rgba_fmt.Rmask = 0x00ff0000;
        rgba_fmt.Gmask = 0x0000ff00;
-       rgba_fmt.Bmask = 0x00ff0000;
+       rgba_fmt.Bmask = 0x000000ff;
        rgba_fmt.Amask = 0xff000000;
 
-       rgba_fmt.Rshift = 0;
+       rgba_fmt.Rshift = 16;
        rgba_fmt.Gshift = 8;
-       rgba_fmt.Bshift = 16;
+       rgba_fmt.Bshift = 0;
        rgba_fmt.Ashift = 24;
        
        rgba_fmt.colorkey = 0;
@@ -150,7 +150,7 @@ int main(int argc, char **argv)
        glPixelStorei(GL_PACK_ALIGNMENT, 1);
 
        unsigned img_w, img_h;
-       unsigned char *src_img = load_image("blg_wheels_woman_1.jpg", &img_w, &img_h);
+       unsigned char *src_img = load_image("test.jpg", &img_w, &img_h);
 
        EffectChain chain(WIDTH, HEIGHT);