https://bugs.kde.org/show_bug.cgi?id=448778

--- Comment #26 from aiamuzz <muzafsh....@gmail.com> ---
I know at the risk of sounding foolish ... will this do the trick ?

your MR ... for the latest version

-  props->refreshRate = mode["refresh"].toDouble() * 1000;
+  props->refreshRate = round(mode["refresh"].toDouble() * 1000);

will the following do the trick to the 3 yr old version ?

-  dmode.refreshRate = mode.vrefresh * 1000LL;
+  dmode.refreshRate = round(mode.vrefresh * 1000LL);

"A better fix would be to use integers instead of floating point numbers"

i don't see toDouble(floating point number) implementation in the above line of
code as seen in the implementation of the latest versions ... I am guessing it
may need some more tinkering with the code in files preceding
"drm_backends.cpp"

hmmmm ...

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to