mirror of
https://github.com/i3/i3.git
synced 2026-02-09 02:05:49 +00:00
Use lround instead of (long)round
This commit is contained in:
@ -49,7 +49,7 @@ void init_dpi(void) {
|
||||
dpi = 0;
|
||||
goto init_dpi_end;
|
||||
}
|
||||
dpi = (long)round(in_dpi);
|
||||
dpi = lround(in_dpi);
|
||||
|
||||
DLOG("Found Xft.dpi = %ld.\n", dpi);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user