comparison scn2k/scn2k_impl.cc @ 61:bdd8a5ff8f46

Revert an old change that disabled cursors...
author Thibaut GIRKA <thib@sitedethib.com>
date Fri, 18 Dec 2009 21:07:29 +0100
parents 6d9146f56ccf
children 3b1593186f12
comparison
equal deleted inserted replaced
60:e16e13d8cd68 61:bdd8a5ff8f46
394 char key[1024]; 394 char key[1024];
395 sprintf(key, "#MOUSE_CURSOR.%03d.NAME", mouse_type); 395 sprintf(key, "#MOUSE_CURSOR.%03d.NAME", mouse_type);
396 const char* name = config->GetParaStr(key); 396 const char* name = config->GetParaStr(key);
397 if (name == NULL || name[0] == 0) mouse_surface = DEFAULT_MOUSECURSOR; 397 if (name == NULL || name[0] == 0) mouse_surface = DEFAULT_MOUSECURSOR;
398 else 398 else
399 mouse_surface = parent.Root().NewSurface("toto", COLOR_MASK); 399 mouse_surface = parent.Root().NewSurface(name, COLOR_MASK);
400 if (mouse_surface == NULL) 400 if (mouse_surface == NULL)
401 mouse_surface = DEFAULT_MOUSECURSOR; 401 mouse_surface = DEFAULT_MOUSECURSOR;
402 System::Main::SetCursor(mouse_surface, Rect(8, 8, 8+32, 8+32)); 402 System::Main::SetCursor(mouse_surface, Rect(8, 8, 8+32, 8+32));
403 } 403 }
404 404