Ticket #8733: thumbnail.diff

File thumbnail.diff, 595 bytes (added by SF/uweryssel, 17 years ago)

Thumbnail loading patch

  • engines/scumm/thumbnail.cpp

     
    7979        }
    8080
    8181        Graphics::Surface *thumb = new Graphics::Surface();
    82         thumb->create(header.width, header.height, sizeof(uint16));
     82        thumb->create(header.width, header.height, sizeof(OverlayColor));
    8383
    84         uint16* pixels = (uint16 *)thumb->pixels;
     84        OverlayColor* pixels = (OverlayColor *)thumb->pixels;
    8585
    8686        for (int y = 0; y < thumb->h; ++y) {
    8787                for (int x = 0; x < thumb->w; ++x) {