Changeset 98371 in vbox
- Timestamp:
- Jan 31, 2023 6:12:13 PM (2 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxSDL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp
r98305 r98371 336 336 return E_POINTER; 337 337 #ifdef RT_OS_DARWIN 338 if (mWinId == NULL) /* (In case it failed the first time.) */338 if (mWinId == 0) /* (In case it failed the first time.) */ 339 339 mWinId = (intptr_t)VBoxSDLGetDarwinWindowId(); 340 340 #endif -
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r98370 r98371 203 203 static BOOL gfGuestScrollLockPressed = FALSE; 204 204 static BOOL gfACPITerm = FALSE; 205 static BOOL gfXCursorEnabled = FALSE; 205 #if defined(VBOXSDL_WITH_X11) && !defined(VBOX_WITHOUT_XCURSOR) 206 static BOOL gfXCursorEnabled = FALSE; 207 #endif 206 208 static int gcGuestNumLockAdaptions = 2; 207 209 static int gcGuestCapsLockAdaptions = 2; … … 3544 3546 bool ok = false; 3545 3547 3546 uint32_t andMaskSize = (data->width + 7) / 8 * data->height;3547 uint32_t srcShapePtrScan = data->width * 4;3548 3549 const uint8_t* shape = data->shape.raw();3550 const uint8_t *srcAndMaskPtr = shape;3551 const uint8_t *srcShapePtr = shape + ((andMaskSize + 3) & ~3);3552 3553 3548 #if 0 3554 3549 /* pointer debugging code */ … … 3570 3565 3571 3566 #if defined(RT_OS_WINDOWS) 3572 3567 uint32_t srcShapePtrScan = data->width * 4; 3568 const uint8_t *srcAndMaskPtr = shape; 3569 const uint8_t *srcShapePtr = shape + ((andMaskSize + 3) & ~3); 3570 uint32_t andMaskSize = (data->width + 7) / 8 * data->height; 3571 const uint8_t* shape = data->shape.raw(); 3573 3572 BITMAPV5HEADER bi; 3574 3573 HBITMAP hBitmap;
Note:
See TracChangeset
for help on using the changeset viewer.