- Timestamp:
- Jul 26, 2017 8:44:38 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 117178
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVModes.cpp
r63566 r68115 230 230 231 231 /* 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 238 239 uint32_t cbSurfMem = pResolution->cx * pResolution->cy * 4; 239 240 if (cbSurfMem > vramSize) 241 { 242 WARN(("resolition %dx%d too big for available VRAM (%d bytes)\n", pResolution->cx, pResolution->cy, vramSize)); 240 243 return VERR_NOT_SUPPORTED; 244 } 241 245 242 246 if (!VBoxLikesVideoMode(u32Target, pResolution->cx, pResolution->cy, 32)) 247 { 248 WARN(("resolution %dx%d not accepted by the frontend\n", pResolution->cx, pResolution->cy)); 243 249 return VERR_NOT_SUPPORTED; 250 } 244 251 245 252 if (pModes->aTransientResolutions[u32Target] == CR_RSIZE2U64(*pResolution))
Note:
See TracChangeset
for help on using the changeset viewer.