(svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL.

This commit is contained in:
rubidium
2008-05-06 22:08:18 +00:00
parent e6c944a6c4
commit 9bf519f26b
34 changed files with 241 additions and 246 deletions

View File

@@ -113,7 +113,7 @@ static void OskWndProc(Window *w, WindowEvent *e)
if (HasBit(_keystate, KEYS_SHIFT)) {
ToggleBit(_keystate, KEYS_SHIFT);
w->widget[OSK_WIDGET_SHIFT].color = HasBit(_keystate, KEYS_SHIFT) ? 15 : 14;
SetWindowDirty(w);
w->SetDirty();
}
break;
}
@@ -133,12 +133,12 @@ static void OskWndProc(Window *w, WindowEvent *e)
case OSK_WIDGET_CAPS:
ToggleBit(_keystate, KEYS_CAPS);
SetWindowDirty(w);
w->SetDirty();
break;
case OSK_WIDGET_SHIFT:
ToggleBit(_keystate, KEYS_SHIFT);
SetWindowDirty(w);
w->SetDirty();
break;
case OSK_WIDGET_SPACE: