Ticket #9122: C4244_cursorman_cursor_struct_constructor.patch

File C4244_cursorman_cursor_struct_constructor.patch, 679 bytes (added by Templier, 14 years ago)

Patch1 - Cursor struct constructor

  • graphics/cursorman.h

     
    178178                byte _targetScale;
    179179
    180180                uint _size;
    181                 Cursor(const byte *data, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor = 0xFFFFFFFF, int targetScale = 1, const Graphics::PixelFormat *format = NULL) {
     181                Cursor(const byte *data, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor = 0xFFFFFFFF, byte targetScale = 1, const Graphics::PixelFormat *format = NULL) {
    182182#ifdef USE_RGB_COLOR
    183183                        if (!format)
    184184                                _format = Graphics::PixelFormat::createFormatCLUT8();