diff options
| author | Andre Weissflog <floooh@gmail.com> | 2019-12-05 12:03:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-05 12:03:19 +0100 |
| commit | bc80da357ad3913dc87b6ba46f089c3ddf0f0e9a (patch) | |
| tree | 434c4d5181b5e07330ebec5b05808387d4b6e5e7 | |
| parent | caea66533e96dd85d46086e4c3455d01a698aad3 (diff) | |
| parent | a237c5d9f512753e03197b125f194d0af450c800 (diff) | |
Merge pull request #238 from incrediblejr/assignment_within_conditional_fix
sokol_app.h: fix for assignment within conditional expression
| -rw-r--r-- | sokol_app.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sokol_app.h b/sokol_app.h index c91b7d52..0ef4d705 100644 --- a/sokol_app.h +++ b/sokol_app.h @@ -4289,8 +4289,8 @@ _SOKOL_PRIVATE void _sapp_win32_key_event(sapp_event_type type, int vk, bool rep _sapp_call_event(&_sapp.event); /* check if a CLIPBOARD_PASTED event must be sent too */ if (_sapp.clipboard_enabled && - (type == SAPP_EVENTTYPE_KEY_DOWN) && - (_sapp.event.modifiers = SAPP_MODIFIER_CTRL) && + (type == SAPP_EVENTTYPE_KEY_DOWN) && + (_sapp.event.modifiers == SAPP_MODIFIER_CTRL) && (_sapp.event.key_code == SAPP_KEYCODE_V)) { _sapp_init_event(SAPP_EVENTTYPE_CLIPBOARD_PASTED); |