Implemented getMonitorScale
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user