mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-26 08:15:24 +00:00
Bug #16674: Make sure RANDR reports refresh as 0 if pixel clock is 0.
This commit is contained in:
committed by
Adam Jackson
parent
3f3f66de66
commit
9111944b29
@@ -55,6 +55,8 @@ xf86RandRModeRefresh (DisplayModePtr mode)
|
||||
{
|
||||
if (mode->VRefresh)
|
||||
return (int) (mode->VRefresh + 0.5);
|
||||
else if (mode->Clock == 0)
|
||||
return 0;
|
||||
else
|
||||
return (int) (mode->Clock * 1000.0 / mode->HTotal / mode->VTotal + 0.5);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user