Mercurial > otakunoraifu
diff window/system.cc @ 54:d7cde171a1de
* scn2k_grp.cc now handles commands in a cleanier way \o/
* some cleaning
author | thib |
---|---|
date | Mon, 20 Apr 2009 16:18:55 +0000 |
parents | 15a18fbe6f21 |
children | 4416cfac86ae |
line wrap: on
line diff
--- a/window/system.cc +++ b/window/system.cc @@ -96,12 +96,12 @@ namespace System { } void Main::SetCursor(Surface* s, const Rect& r) { - if (instance == 0) return; + if (instance == NULL) return; if (instance->cursor) delete instance->cursor; - if (s == 0) { // カーソル消去 - instance->cursor = 0; + if (s == NULL) { // カーソル消去 + instance->cursor = NULL; } else if (s == DEFAULT_MOUSECURSOR) { - instance->cursor = 0; + instance->cursor = NULL; SDL_ShowCursor(SDL_ENABLE); } else { instance->cursor = new WidMouseCursor(instance->event, instance->root.root, s, r.lx, r.ty, r.width(), r.height());