Changeset 6492 in vbox
- Timestamp:
- Jan 24, 2008 5:22:43 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 27498
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/xgraphics/vboxvideo_13.c
r6484 r6492 198 198 Bool rc = TRUE; 199 199 200 TRACE3("width=%d, height=%d\n", width, height);201 200 /* We only support horizontal resolutions which are a multiple of 8. Round down if 202 201 necessary. */ … … 224 223 } 225 224 if (rc) { 226 TRACE3("Setting screen pixmap parameters: width=%d, height=%d, depth=%d, bpp=%d, stride=%d, VRAM=%p\n", width, height, scrn->depth, bpp, width * bpp / 8, pVBox->base);227 225 if ( 228 226 !pScreen->ModifyPixmapHeader(pPixmap, width, height, … … 240 238 scrn->displayWidth = width; 241 239 } 242 TRACE3("returning %s\n", rc ? "TRUE" : "FALSE");243 240 return rc; 244 241 } … … 250 247 static void 251 248 vbox_crtc_dpms(xf86CrtcPtr crtc, int mode) 252 { TRACE;(void) crtc; (void) mode; }249 { (void) crtc; (void) mode; } 253 250 254 251 static Bool 255 252 vbox_crtc_lock (xf86CrtcPtr crtc) 256 { TRACE;(void) crtc; return FALSE; }253 { (void) crtc; return FALSE; } 257 254 258 255 static Bool … … 263 260 int xRes = adjusted_mode->HDisplay; 264 261 265 TRACE;266 262 (void) mode; 267 263 /* We only support horizontal resolutions which are a multiple of 8. Round down if … … 274 270 adjusted_mode->HDisplay = xRes - (xRes % 8); 275 271 } 276 TRACE2;277 272 return TRUE; 278 273 } … … 280 275 static void 281 276 vbox_crtc_stub (xf86CrtcPtr crtc) 282 { TRACE;(void) crtc; }277 { (void) crtc; } 283 278 284 279 static void … … 287 282 { 288 283 (void) mode; 289 TRACE;290 284 VBOXSetMode(crtc->scrn, adjusted_mode); 291 285 VBOXAdjustFrame(crtc->scrn->scrnIndex, x, y, 0); 292 TRACE2;293 286 } 294 287 … … 296 289 vbox_crtc_gamma_set (xf86CrtcPtr crtc, CARD16 *red, 297 290 CARD16 *green, CARD16 *blue, int size) 298 { TRACE;(void) crtc; (void) red; (void) green; (void) blue; (void) size; }291 { (void) crtc; (void) red; (void) green; (void) blue; (void) size; } 299 292 300 293 static void * 301 294 vbox_crtc_shadow_allocate (xf86CrtcPtr crtc, int width, int height) 302 { TRACE;(void) crtc; (void) width; (void) height; return NULL; }295 { (void) crtc; (void) width; (void) height; return NULL; } 303 296 304 297 static const xf86CrtcFuncsRec VBOXCrtcFuncs = { … … 327 320 static void 328 321 vbox_output_stub (xf86OutputPtr output) 329 { TRACE;(void) output; }322 { (void) output; } 330 323 331 324 static void 332 325 vbox_output_dpms (xf86OutputPtr output, int mode) 333 { TRACE;(void) output; (void) mode; }326 { (void) output; (void) mode; } 334 327 335 328 static int 336 329 vbox_output_mode_valid (xf86OutputPtr output, DisplayModePtr mode) 337 330 { 338 TRACE3("Modeline %s %f %d %d %d %d %d %d %d %d\n",339 mode->name, mode->Clock * 1.0 / 1000, mode->HDisplay, mode->HSyncStart,340 mode->HSyncEnd, mode->HTotal, mode->VDisplay, mode->VSyncStart,341 mode->VSyncEnd, mode->VTotal);342 331 (void) output; (void) mode; 343 332 return MODE_OK; … … 347 336 vbox_output_mode_fixup (xf86OutputPtr output, DisplayModePtr mode, 348 337 DisplayModePtr adjusted_mode) 349 { TRACE;(void) output; (void) mode; (void) adjusted_mode; return TRUE; }338 { (void) output; (void) mode; (void) adjusted_mode; return TRUE; } 350 339 351 340 static void 352 341 vbox_output_mode_set (xf86OutputPtr output, DisplayModePtr mode, 353 342 DisplayModePtr adjusted_mode) 354 { TRACE;(void) output; (void) mode; (void) adjusted_mode; }343 { (void) output; (void) mode; (void) adjusted_mode; } 355 344 356 345 /* A virtual monitor is always connected. */ … … 396 385 ScrnInfoPtr pScrn = output->scrn; 397 386 398 TRACE;399 387 rc = vboxGetDisplayChangeRequest(pScrn, &x, &y, &bpp, 0, 0); 400 388 if (RT_SUCCESS(rc) && (0 != x) && (0 != y)) { 401 TRACE3("Adding host mode %dx%d\n", x, y);402 389 vbox_output_add_mode(&pModes, NULL, x, y, TRUE); 403 390 vbox_output_add_mode(&pModes, "1024x768", 1024, 768, FALSE); … … 409 396 vbox_output_add_mode(&pModes, "640x480", 640, 480, FALSE); 410 397 } 411 TRACE2;412 398 return pModes; 413 399 } … … 418 404 vbox_output_set_property(xf86OutputPtr output, Atom property, 419 405 RRPropertyValuePtr value) 420 { TRACE;(void) output, (void) property, (void) value; return FALSE; }406 { (void) output, (void) property, (void) value; return FALSE; } 421 407 #endif 422 408 … … 732 718 733 719 /* Set a sane minimum and maximum mode size */ 734 xf86CrtcSetSizeRange(pScrn, 64, 64, 102400, 76800);720 xf86CrtcSetSizeRange(pScrn, 64, 64, 64000, 64000); 735 721 736 722 /* I don't know exactly what these are for (and they are only used in a couple … … 738 724 an upper limit on possible resolutions. To add to the fun, they get set 739 725 automatically if we don't do it ourselves. */ 740 pScrn->display->virtualX = 102400;741 pScrn->display->virtualY = 76800;726 pScrn->display->virtualX = 64000; 727 pScrn->display->virtualY = 64000; 742 728 743 729 /* We are not interested in the monitor section in the configuration file. */
Note:
See TracChangeset
for help on using the changeset viewer.