Cleanup: tablet press could fall through to release on GHOST/Win32
Introduced in [0], checking the logic here, there seems to be no reason
a press event should ever run release logic, relocate break statement.
In practice this was unlikely to cause problems as peeking into press
events would need to fail, peeking into release would need to succeed.
Even so, better avoid accidental fall through in switch statements.
[0]: 6f158f834d
This commit is contained in:
parent
8bfb65e254
commit
e9d4a20a59
|
@ -900,11 +900,11 @@ void GHOST_SystemWin32::processWintabEvent(GHOST_WindowWin32 *window)
|
|||
new GHOST_EventButton(info.time, info.type, window, info.button, info.tabletData));
|
||||
|
||||
mouseMoveHandled = true;
|
||||
break;
|
||||
}
|
||||
else {
|
||||
WINTAB_PRINTF(" ... but no system button\n");
|
||||
}
|
||||
break;
|
||||
}
|
||||
case GHOST_kEventButtonUp: {
|
||||
WINTAB_PRINTF("HWND %p Wintab button up", window->getHWND());
|
||||
|
|
Loading…
Reference in New Issue