void Cursor::setStyle(CursorStyle style) { if (!checkStyle(style)) return; if (style == _current) return; debugC(10, kLastExpressDebugCursor | kLastExpressDebugAll, "Cursor: setting style: %d", style); // Save the new cursor _current = style; // Reuse the screen pixel format Graphics::PixelFormat pf = g_system->getScreenFormat(); CursorMan.replaceCursor((const byte *)getCursorImage(style), 32, 32, _cursors[style].hotspotX, _cursors[style].hotspotY, 0, 1, &pf); }
VisualImageXMG *StaticProvider::getUIElement(UIElement element) { return getCursorImage(element); }