Implemented getMonitorScale

This commit is contained in:
b committed 2022-01-09 19:31:27 -07:00
1 parent 68e1402260
commit e53d1dd0aa
2 files changed
+15

No files matched your search

+2
View File
@@ -140,6 +140,8 @@ pub fn main() !void {
defer state.deinit();
var win = mfb.Window(State).open("Hello minifb-zig", Width, Height, .{ .resizable = true, .alwaysOnTop = true }) catch unreachable;
const scale = win.getMonitorScale();
std.log.info("Monitor scale: {d} * {d}", .{scale.x, scale.y});
mfb.setTargetFPS(30);
win.setUserData(&state);