Ignore:
Timestamp:
Apr 20, 2011, 8:32:26 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: some more vec2i transition for simplicity.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/sdlport/video.cpp

    r512 r513  
    126126
    127127    // Create the screen image
    128     screen = new image(xres, yres, NULL, 2);
     128    screen = new image(vec2i(xres, yres), NULL, 2);
    129129    if(screen == NULL)
    130130    {
     
    392392// make_page()
    393393//
    394 void image::make_page(short width, short height, unsigned char *page_buffer)
    395 {
    396     if(page_buffer)
    397         data = page_buffer;
     394void image::make_page(vec2i size, uint8_t *page_buffer)
     395{
     396    if (page_buffer)
     397        m_data = page_buffer;
    398398    else
    399         data = (unsigned char *)malloc(width * height);
     399        m_data = (uint8_t *)malloc(size.x * size.y);
    400400}
    401401
     
    406406{
    407407    if(!special || !special->static_mem)
    408         free(data);
     408        free(m_data);
    409409}
    410410
Note: See TracChangeset for help on using the changeset viewer.