Skip to content

Commit f04638f

Browse files
committed
Pass the framebuffer scale to the function in the SDL3 GPU backend.
1 parent f020477 commit f04638f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend_sdl3_gpu.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ pub fn processEvent(event: *const anyopaque) bool {
2727
return backend_sdl3.processEvent(event);
2828
}
2929

30-
pub fn newFrame(fb_width: u32, fb_height: u32) void {
30+
pub fn newFrame(fb_width: u32, fb_height: u32, fb_scale: f32) void {
3131
ImGui_ImplSDLGPU3_NewFrame();
3232
backend_sdl3.newFrame();
3333

3434
gui.io.setDisplaySize(@as(f32, @floatFromInt(fb_width)), @as(f32, @floatFromInt(fb_height)));
35-
gui.io.setDisplayFramebufferScale(1.0, 1.0);
35+
gui.io.setDisplayFramebufferScale(fb_scale, fb_scale);
3636

3737
gui.newFrame();
3838
}

0 commit comments

Comments
 (0)