Freesync and hidpi.
This commit is contained in:
@@ -339,6 +339,7 @@ S32 main(int argc, char *argv[])
|
|||||||
state.window_w = 1400;
|
state.window_w = 1400;
|
||||||
state.window_h = 300;
|
state.window_h = 300;
|
||||||
|
|
||||||
|
SetConfigFlags(FLAG_VSYNC_HINT | FLAG_MSAA_4X_HINT | FLAG_WINDOW_HIGHDPI);
|
||||||
InitWindow(state.window_w, state.window_h, "Time Tracker");
|
InitWindow(state.window_w, state.window_h, "Time Tracker");
|
||||||
SetWindowState(FLAG_MSAA_4X_HINT|FLAG_WINDOW_RESIZABLE);
|
SetWindowState(FLAG_MSAA_4X_HINT|FLAG_WINDOW_RESIZABLE);
|
||||||
|
|
||||||
@@ -357,8 +358,11 @@ S32 main(int argc, char *argv[])
|
|||||||
|
|
||||||
state.font_size = 30;
|
state.font_size = 30;
|
||||||
|
|
||||||
|
|
||||||
double last_input_s = now();
|
double last_input_s = now();
|
||||||
|
|
||||||
|
SetTargetFPS(30);
|
||||||
|
|
||||||
while(!WindowShouldClose()) {
|
while(!WindowShouldClose()) {
|
||||||
poll_input();
|
poll_input();
|
||||||
|
|
||||||
@@ -485,6 +489,8 @@ S32 main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DrawRectangle(state.mouse_pos.x, state.mouse_pos.y, 10, 10, WHITE);
|
||||||
|
|
||||||
DrawFPS(20, 20);
|
DrawFPS(20, 20);
|
||||||
EndDrawing();
|
EndDrawing();
|
||||||
|
|
||||||
@@ -499,6 +505,7 @@ S32 main(int argc, char *argv[])
|
|||||||
last_save = now_s;
|
last_save = now_s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
if(is_dirty()) {
|
if(is_dirty()) {
|
||||||
clear_dirty();
|
clear_dirty();
|
||||||
SetTargetFPS(120); // FPS cap
|
SetTargetFPS(120); // FPS cap
|
||||||
@@ -508,6 +515,7 @@ S32 main(int argc, char *argv[])
|
|||||||
last_input_s = now_s;
|
last_input_s = now_s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
save_activities(f, file_path, current_activity, activities);
|
save_activities(f, file_path, current_activity, activities);
|
||||||
|
|||||||
Reference in New Issue
Block a user