Changeset 15868 in vbox for trunk/src/VBox
- Timestamp:
- Jan 8, 2009 2:38:28 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxSDL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp
r12449 r15868 116 116 mBitsPerPixel = 0; 117 117 mBytesPerLine = 0; 118 mfSameSizeRequested = false; 118 119 #ifdef VBOX_SECURELABEL 119 120 mLabelFont = NULL; … … 477 478 } 478 479 480 /* 481 * Optimize the case when the guest has changed only the VRAM ptr 482 * and the framebuffer uses the guest VRAM as the source bitmap. 483 */ 484 if ( mGuestXRes == w 485 && mGuestYRes == h 486 && mPixelFormat == pixelFormat 487 && mBitsPerPixel == bitsPerPixel 488 && mBytesPerLine == bytesPerLine 489 && mUsesGuestVRAM 490 ) 491 { 492 mfSameSizeRequested = true; 493 } 494 else 495 { 496 mfSameSizeRequested = false; 497 } 498 479 499 mGuestXRes = w; 480 500 mGuestYRes = h; … … 702 722 } 703 723 LogFlow(("VBoxSDL:: created VRAM surface %p\n", mSurfVRAM)); 724 725 if (mfSameSizeRequested && mUsesGuestVRAM) 726 { 727 /* 728 * Same size has been requested and the framebuffer still uses the guest VRAM. 729 * Reset the condition and return. 730 */ 731 mfSameSizeRequested = false; 732 LogFlow(("VBoxSDL:: the same resolution requested, skipping the resize.\n")); 733 return; 734 } 704 735 705 736 /* now adjust the SDL resolution */ -
trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.h
r12449 r15868 204 204 ULONG mPixelFormat; 205 205 BOOL mUsesGuestVRAM; 206 BOOL mfSameSizeRequested; 206 207 207 208 /** the application Icon */
Note:
See TracChangeset
for help on using the changeset viewer.