Mercurial > otakunoraifu
diff scn2k/scn2k_impl.cc @ 57:6d9146f56ccf
* Move some opcodes
* Merge last changes from xclannad
author | Thibaut GIRKA <thib@sitedethib.com> |
---|---|
date | Sat, 14 Nov 2009 23:31:51 +0100 |
parents | ddbcbd000206 |
children | bdd8a5ff8f46 |
line wrap: on
line diff
--- a/scn2k/scn2k_impl.cc +++ b/scn2k/scn2k_impl.cc @@ -392,13 +392,13 @@ fprintf(stderr," -> fall back to %d\n",s void Scn2k::ShowCursor(void) { HideCursor(); char key[1024]; - sprintf(key, "#MOUSE_CURSOR.%03d.NAME",mouse_type); + sprintf(key, "#MOUSE_CURSOR.%03d.NAME", mouse_type); const char* name = config->GetParaStr(key); if (name == NULL || name[0] == 0) mouse_surface = DEFAULT_MOUSECURSOR; - else { - mouse_surface = parent.Root().NewSurface(name, COLOR_MASK); - } - if (mouse_surface == NULL) mouse_surface = DEFAULT_MOUSECURSOR; + else + mouse_surface = parent.Root().NewSurface("toto", COLOR_MASK); + if (mouse_surface == NULL) + mouse_surface = DEFAULT_MOUSECURSOR; System::Main::SetCursor(mouse_surface, Rect(8, 8, 8+32, 8+32)); }