- Timestamp:
- Jan 30, 2008 8:10:34 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/xgraphics/vboxvideo_13.c
r6492 r6589 48 48 */ 49 49 50 # define DEBUG_VERB 250 #ifdef DEBUG 51 51 52 52 #define TRACE \ … … 65 65 xf86Msg(X_INFO, __VA_ARGS__); \ 66 66 } while(0) 67 68 #else /* DEBUG not defined */ 69 70 #define TRACE 71 #define TRACE2 72 #define TRACE3(...) 73 74 #endif /* DEBUG not defined */ 75 67 76 #ifdef XFree86LOADER 68 77 # include "xorg-server.h" … … 198 207 Bool rc = TRUE; 199 208 209 TRACE3("width=%d, height=%d\n", width, height); 200 210 /* We only support horizontal resolutions which are a multiple of 8. Round down if 201 211 necessary. */ … … 238 248 scrn->displayWidth = width; 239 249 } 250 TRACE3("returning %d\n", rc); 240 251 return rc; 241 252 } … … 261 272 262 273 (void) mode; 274 TRACE3("name=%s, HDisplay=%d, VDisplay=%d\n", adjusted_mode->name, 275 adjusted_mode->HDisplay, adjusted_mode->VDisplay); 263 276 /* We only support horizontal resolutions which are a multiple of 8. Round down if 264 277 necessary. */ … … 282 295 { 283 296 (void) mode; 297 TRACE3("name=%s, HDisplay=%d, VDisplay=%d, x=%d, y=%d\n", adjusted_mode->name, 298 adjusted_mode->HDisplay, adjusted_mode->VDisplay, x, y); 284 299 VBOXSetMode(crtc->scrn, adjusted_mode); 285 300 VBOXAdjustFrame(crtc->scrn->scrnIndex, x, y, 0); … … 355 370 Bool isPreferred) 356 371 { 372 TRACE3("pszName=%s, x=%d, y=%d\n", pszName, x, y); 357 373 DisplayModePtr pMode = xnfcalloc(1, sizeof(DisplayModeRec)); 358 374 … … 381 397 { 382 398 uint32_t x, y, bpp; 383 intrc;399 bool rc; 384 400 DisplayModePtr pModes = NULL; 385 401 ScrnInfoPtr pScrn = output->scrn; 386 402 403 TRACE; 387 404 rc = vboxGetDisplayChangeRequest(pScrn, &x, &y, &bpp, 0, 0); 388 if ( RT_SUCCESS(rc)&& (0 != x) && (0 != y)) {405 if (rc && (0 != x) && (0 != y)) { 389 406 vbox_output_add_mode(&pModes, NULL, x, y, TRUE); 390 407 vbox_output_add_mode(&pModes, "1024x768", 1024, 768, FALSE); … … 396 413 vbox_output_add_mode(&pModes, "640x480", 640, 480, FALSE); 397 414 } 415 TRACE2; 398 416 return pModes; 399 417 }
Note:
See TracChangeset
for help on using the changeset viewer.