- Timestamp:
- Jan 18, 2007 3:44:52 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 17594
- Location:
- trunk/src/VBox/Frontends/VBoxSDL
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp
r1 r143 71 71 * @param fResizable flag whether the SDL window should be resizable 72 72 * @param fShowSDLConfig flag whether we print out SDL settings 73 * @param ulFixedWith fixed SDL width (~0means not set)74 * @param ulFixedHeight fixed SDL height (~0means not set)73 * @param iFixedWidth fixed SDL width (-1 means not set) 74 * @param iFixedHeight fixed SDL height (-1 means not set) 75 75 */ 76 76 VBoxSDLFB::VBoxSDLFB(bool fFullscreen, bool fResizable, bool fShowSDLConfig, 77 int ulFixedWidth, int ulFixedHeight, int ulFixedBPP)77 uint32_t u32FixedWidth, uint32_t u32FixedHeight, uint32_t u32FixedBPP) 78 78 { 79 79 int rc; … … 91 91 mfResizable = fResizable; 92 92 mfShowSDLConfig = fShowSDLConfig; 93 mFixedSDLWidth = u lFixedWidth;94 mFixedSDLHeight = u lFixedHeight;95 mFixedSDLBPP = u lFixedBPP;93 mFixedSDLWidth = u32FixedWidth; 94 mFixedSDLHeight = u32FixedHeight; 95 mFixedSDLBPP = u32FixedBPP; 96 96 mCenterXOffset = 0; 97 97 mCenterYOffset = 0; … … 506 506 507 507 /* are constraints set? */ 508 if ( ( (mMaxScreenWidth != ~ 0UL)508 if ( ( (mMaxScreenWidth != ~(uint32_t)0) 509 509 && (width > mMaxScreenWidth) 510 || ( (mMaxScreenHeight != ~ 0UL)510 || ( (mMaxScreenHeight != ~(uint32_t)0) 511 511 && (height > mMaxScreenHeight)))) 512 512 { … … 677 677 { 678 678 /* no restriction */ 679 mMaxScreenWidth = ~ 0;680 mMaxScreenHeight = ~ 0;679 mMaxScreenWidth = ~(uint32_t)0; 680 mMaxScreenHeight = ~(uint32_t)0; 681 681 } 682 682 … … 689 689 690 690 /* we either have a fixed SDL resolution or we take the guest's */ 691 if (mFixedSDLWidth != ~ 0U)691 if (mFixedSDLWidth != ~(uint32_t)0) 692 692 { 693 693 newWidth = mFixedSDLWidth; … … 718 718 * code will try again with the original guest resolution. 719 719 */ 720 if (mFixedSDLWidth == ~ 0U)720 if (mFixedSDLWidth == ~(uint32_t)0) 721 721 { 722 722 /* if it didn't work, then we have to go for the original resolution and paint over the guest */ … … 1218 1218 if (!address) 1219 1219 return E_INVALIDARG; 1220 *address = ( ULONG) mOverlayBits->pixels;1220 *address = (uintptr_t) mOverlayBits->pixels; 1221 1221 return S_OK; 1222 1222 } -
trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.h
r1 r143 49 49 public: 50 50 VBoxSDLFB(bool fFullscreen = false, bool fResizable = true, bool fShowSDLConfig = false, 51 int ulFixedWidth = ~0, int ulFixedHeight = ~0, int ulFixedBPP = ~0);51 uint32_t u32FixedWidth = ~(uint32_t)0, uint32_t u32FixedHeight = ~(uint32_t)0, uint32_t u32FixedBPP = ~(uint32_t)0); 52 52 virtual ~VBoxSDLFB(); 53 53 -
trunk/src/VBox/Frontends/VBoxSDL/Helper.cpp
r1 r143 53 53 DECLCALLBACK(int) xpcomEventThread(RTTHREAD thread, void *pvUser) 54 54 { 55 int eqFD = (int )pvUser;55 int eqFD = (intptr_t)pvUser; 56 56 unsigned cErrors = 0; 57 57 int rc;
Note:
See TracChangeset
for help on using the changeset viewer.