equal
deleted
inserted
replaced
15 width = w; |
15 width = w; |
16 height = h; |
16 height = h; |
17 depth = d; |
17 depth = d; |
18 |
18 |
19 SDL_Init (SDL_INIT_VIDEO); |
19 SDL_Init (SDL_INIT_VIDEO); |
20 screen = SDL_SetVideoMode (width, height, depth, SDL_HWSURFACE); |
20 screen = SDL_SetVideoMode (w, h, depth, SDL_HWSURFACE | SDL_FULLSCREEN); |
|
21 width = screen->w; |
|
22 height = screen->h; |
21 red = SDL_MapRGB (screen->format, 0xff, 0x00, 0x00); |
23 red = SDL_MapRGB (screen->format, 0xff, 0x00, 0x00); |
22 green = SDL_MapRGB (screen->format, 0x00, 0xff, 0x00); |
24 green = SDL_MapRGB (screen->format, 0x00, 0xff, 0x00); |
23 blue = SDL_MapRGB (screen->format, 0x00, 0x00, 0xff); |
25 blue = SDL_MapRGB (screen->format, 0x00, 0x00, 0xff); |
24 black = SDL_MapRGB (screen->format, 0x00, 0x00, 0x00); |
26 black = SDL_MapRGB (screen->format, 0x00, 0x00, 0x00); |
25 |
27 |