Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/main_rgfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ u64 RGFW_getTimerValue(void) {
QueryPerformanceCounter((LARGE_INTEGER*)&value);
return value;
}
#else
#else
// TODO: make RGFW_getTimerFreq, RGFW_getTimerValue, RGFW_sleep compile on the rest of the platforms (Windows, MacOS)
void RGFW_sleep(u64 ms) {
struct timespec time;
Expand Down Expand Up @@ -384,8 +384,8 @@ int main(int argc, char **argv)
} break;
}
} break;
case RGFW_mouseButtonPressed: {
if (event.key.mod & RGFW_modControl) {
case RGFW_mouseScroll: {
if (RGFW_isKeyDown(RGFW_controlL) || RGFW_isKeyDown(RGFW_controlR)) {
if (event.scroll.y > 0) {
state.user_scale += SCALE_FACTOR * state.user_scale;
} else if (event.scroll.y < 0) {
Expand Down
Loading