VirtualBox

Changeset 68115 in vbox for trunk


Ignore:
Timestamp:
Jul 26, 2017 8:44:38 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
117178
Message:

Additions/WINNT/Video: log more reasons why setting a graphics mode fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVModes.cpp

    r63566 r68115  
    230230
    231231    /* prevent potensial overflow */
    232     if (pResolution->cx > 0x7fff
    233             || pResolution->cy > 0x7fff)
    234     {
    235         WARN(("too big resolution"));
    236         return VERR_INVALID_PARAMETER;
    237     }
     232    if (   pResolution->cx > 0x7fff
     233        || pResolution->cy > 0x7fff)
     234    {
     235        WARN(("resolution %dx%d insane", pResolution->cx, pResolution->cy));
     236        return VERR_INVALID_PARAMETER;
     237    }
     238
    238239    uint32_t cbSurfMem = pResolution->cx * pResolution->cy * 4;
    239240    if (cbSurfMem > vramSize)
     241    {
     242        WARN(("resolition %dx%d too big for available VRAM (%d bytes)\n", pResolution->cx, pResolution->cy, vramSize));
    240243        return VERR_NOT_SUPPORTED;
     244    }
    241245
    242246    if (!VBoxLikesVideoMode(u32Target, pResolution->cx, pResolution->cy, 32))
     247    {
     248        WARN(("resolution %dx%d not accepted by the frontend\n", pResolution->cx, pResolution->cy));
    243249        return VERR_NOT_SUPPORTED;
     250    }
    244251
    245252    if (pModes->aTransientResolutions[u32Target] == CR_RSIZE2U64(*pResolution))
Note: See TracChangeset for help on using the changeset viewer.

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