@@ -92,8 +92,7 @@ void waylandEGLSwapBuffers(EGLDisplay display, EGLSurface surface, const struct
9292
9393 int width , height ;
9494 wlWm .desktop -> getSize (& width , & height );
95- wl_egl_window_resize (wlWm .eglWindow , wl_fixed_to_int (width * wlWm .scale ),
96- wl_fixed_to_int (height * wlWm .scale ), 0 , 0 );
95+ wl_egl_window_resize (wlWm .eglWindow , width * wlWm .scale , height * wlWm .scale , 0 , 0 );
9796
9897 if (width == 0 || height == 0 )
9998 skipResize = true;
@@ -123,15 +122,15 @@ void waylandEGLSwapBuffers(EGLDisplay display, EGLSurface surface, const struct
123122 wp_viewport_destroy (wlWm .viewport );
124123 wlWm .viewport = NULL ;
125124 }
126- wl_surface_set_buffer_scale (wlWm .surface , wl_fixed_to_int (wlWm .scale ));
125+ wl_surface_set_buffer_scale (wlWm .surface , floor (wlWm .scale ));
127126 }
128127
129128 struct wl_region * region = wl_compositor_create_region (wlWm .compositor );
130129 wl_region_add (region , 0 , 0 , width , height );
131130 wl_surface_set_opaque_region (wlWm .surface , region );
132131 wl_region_destroy (region );
133132
134- app_handleResizeEvent (width , height , wl_fixed_to_double ( wlWm .scale ) ,
133+ app_handleResizeEvent (width , height , wlWm .scale ,
135134 (struct Border ) {0 , 0 , 0 , 0 });
136135 app_invalidateWindow (true);
137136 waylandStopWaitFrame ();
0 commit comments