equal
deleted
inserted
replaced
23 blue = SDL_MapRGB (screen->format, 0x00, 0x00, 0xff); |
23 blue = SDL_MapRGB (screen->format, 0x00, 0x00, 0xff); |
24 black = SDL_MapRGB (screen->format, 0x00, 0x00, 0x00); |
24 black = SDL_MapRGB (screen->format, 0x00, 0x00, 0x00); |
25 |
25 |
26 color = red; |
26 color = red; |
27 bpp = screen->format->BytesPerPixel; |
27 bpp = screen->format->BytesPerPixel; |
|
28 |
|
29 refCounter++; |
28 } |
30 } |
29 |
31 |
30 Surface::~Surface () |
32 Surface::~Surface () |
31 { |
33 { |
|
34 SDL_FreeSurface (screen); |
32 SDL_Quit (); |
35 SDL_Quit (); |
33 } |
36 } |
34 |
37 |
35 void Surface::drawPixel (int x, int y) |
38 void Surface::drawPixel (int x, int y) |
36 { |
39 { |