Added mike.c for testing
[dosdemo] / src / mike.c
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
4 #include <math.h>
5 #include <assert.h>
6 #include "imago2.h"
7 #include "demo.h"
8 #include "screen.h"
9
10 static int init(void);
11 static void destroy(void);
12 static void start(long trans_time);
13 static void stop(long trans_time);
14 static void draw(void);
15
16 static struct screen scr = {
17         "mike",
18         init,
19         destroy,
20         start,
21         stop,
22         draw
23 };
24
25 struct screen *mike_screen(void)
26 {
27         return &scr;
28 }
29
30
31 static int init(void)
32 {
33         return 0;
34 }
35
36 static void destroy(void)
37 {
38 }
39
40 static void start(long trans_time)
41 {
42         if(trans_time) {
43                 
44         }
45 }
46
47 static void stop(long trans_time)
48 {
49         if(trans_time) {
50
51         }
52 }
53
54 static void draw(void)
55 {       
56         unsigned short *pixels = fb_pixels;
57
58         int j, i;
59         for (j = 0; j < fb_height; j++) {
60                 for (i = 0; i < fb_width; i++) {
61                         *pixels++ = 0xF800;
62                 }
63         }
64 }
65
66