Skip to content
Snippets Groups Projects
Commit 228e8761 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Remove cast-to-int in gdi_getscaling

This fixes bug 141, which is currently the last blocker for rc2.
parent 7d65370c
No related branches found
No related tags found
No related merge requests found
Pipeline #6748 passed
...@@ -1341,10 +1341,10 @@ gdi_setwinsize(int w, int h) ...@@ -1341,10 +1341,10 @@ gdi_setwinsize(int w, int h)
double double
gdi_getscaling(void) gdi_getscaling(void)
{ {
int ret; double ret;
pthread_mutex_lock(&vstatlock); pthread_mutex_lock(&vstatlock);
ret = (int)bitmap_double_mult_inside(vstat.winwidth, vstat.winheight); ret = bitmap_double_mult_inside(vstat.winwidth, vstat.winheight);
pthread_mutex_unlock(&vstatlock); pthread_mutex_unlock(&vstatlock);
return ret; return ret;
} }
......
...@@ -11,6 +11,7 @@ Added "Build Options" menu item ...@@ -11,6 +11,7 @@ Added "Build Options" menu item
Fix focus-follows-mouse behaviour in herbstluftwm Fix focus-follows-mouse behaviour in herbstluftwm
Fix SAUCE binary capture date Fix SAUCE binary capture date
Add Build Options menu item Add Build Options menu item
Fix saving non-integer scaling in GDI mode
Version 1.2rc1 Version 1.2rc1
-------------- --------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment