VirtualBox

Changeset 95466 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 1, 2022 10:27:14 AM (3 years ago)
Author:
vboxsync
Message:

Additions: X11: VBoxClient --vmsvga: Do proper clock conversion, bugref:10222.

When adding a new display mode, clock frequency should be specified in
units of Hz. This commit converts kHz into Hz.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp

    r95145 r95466  
    12471247    DisplayModeR mode = f86CVTMode(iXRes, iYRes, 60 /*VRefresh */, true /*Reduced */, false  /* Interlaced */);
    12481248
    1249     pModeInfo->dotClock = mode.Clock;
     1249    /* Convert kHz to Hz: f86CVTMode returns clock value in units of kHz,
     1250     * XRRCreateMode will expect it in units of Hz. */
     1251    pModeInfo->dotClock = mode.Clock * 1000;
     1252
    12501253    pModeInfo->hSyncStart = mode.HSyncStart;
    12511254    pModeInfo->hSyncEnd = mode.HSyncEnd;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette