SDL backend set the mouse button bitmask incorrectly
[dosdemo] / src / plasma.c
index ac13e6a..132cff3 100644 (file)
@@ -10,7 +10,6 @@
 static int init(void);
 static void destroy(void);
 static void start(long trans_time);
-static void stop(long trans_time);
 static void draw(void);
 
 static struct screen scr = {
@@ -18,19 +17,19 @@ static struct screen scr = {
        init,
        destroy,
        start,
-       stop,
+       0,
        draw
 };
 
-unsigned long startingTime;
+static unsigned long startingTime;
 
 #define PSIN_SIZE 4096
 #define PPAL_SIZE 256
 
-unsigned char *psin1, *psin2, *psin3;
-unsigned short *plasmaPal;
+static unsigned char *psin1, *psin2, *psin3;
+static unsigned short *plasmaPal;
 
-unsigned short myBuffer[320*240];
+static unsigned short myBuffer[320 * 240];
 
 
 struct screen *plasma_screen(void)
@@ -68,8 +67,8 @@ static int init(void)
                plasmaPal[i] = (r<<11) | (g<<5) | b;
        }
 
-       return 0xCAFE;
-       //return 0;
+       //return 0xCAFE;
+       return 0;
 }
 
 static void destroy(void)
@@ -84,10 +83,6 @@ static void start(long trans_time)
        startingTime = time_msec;
 }
 
-static void stop(long trans_time)
-{
-}
-
 static void draw(void)
 {
        int x, y;
@@ -116,7 +111,7 @@ static void draw(void)
                }
        }
 
-       drawFps((unsigned short*)fb_pixels);
+       drawFps((unsigned short*)vmem_back);
 
        swap_buffers(0);
 }