Skip to content

Commit be0d95b

Browse files
committed
fix calculation
1 parent 4297773 commit be0d95b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/shared/qwkwindowsextra_p.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ namespace QWK {
436436
}
437437
const qreal dpr = qreal(dpi) / qreal(USER_DEFAULT_SCREEN_DPI);
438438
// ### Not sure how Windows itself rounds non-integer value.
439-
return qFloor(qreal(result) * dpr);
439+
return qFloor(qreal(result) / dpr);
440440
}
441441

442442
inline quint32 getWindowFrameBorderThickness(HWND hwnd) {

0 commit comments

Comments
 (0)