mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Avoid warning about unused variable on non-OSX platforms
This commit is contained in:
parent
3dce633bf6
commit
76e7d15484
@ -193,9 +193,9 @@ protected:
|
||||
case kKeyDownMessage: {
|
||||
KeyMessage* keyMsg = static_cast<KeyMessage*>(msg);
|
||||
KeyScancode scancode = keyMsg->scancode();
|
||||
int unicode = keyMsg->unicodeChar();
|
||||
|
||||
#ifdef __APPLE__
|
||||
int unicode = keyMsg->unicodeChar();
|
||||
bool up = (msg->cmdPressed() && scancode == kKeyUp);
|
||||
bool enter = (msg->cmdPressed() && scancode == kKeyDown);
|
||||
bool back = (msg->cmdPressed() && msg->shiftPressed() && unicode == '[');
|
||||
|
Loading…
Reference in New Issue
Block a user