pmc/surface.cc
changeset 54 c064ce9f40f5
parent 46 4b9e1ac40246
child 65 76514757b0d6
equal deleted inserted replaced
53:6b3d7e3418c1 54:c064ce9f40f5
    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 {