Implemented getMonitorScale

This commit is contained in:
2022-01-09 19:31:27 -07:00
parent 68e1402260
commit e53d1dd0aa
2 changed files with 15 additions and 0 deletions

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);