Changeset 44999 in vbox for trunk/src/VBox
- Timestamp:
- Mar 11, 2013 4:57:48 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h
r44528 r44999 55 55 #include <VBox/VBoxVideoGuest.h> 56 56 #include <VBox/VBoxVideo.h> 57 #include <iprt/asm-math.h>58 57 59 58 #ifdef DEBUG … … 259 258 static inline int32_t vboxLineLength(ScrnInfoPtr pScrn, int32_t cDisplayWidth) 260 259 { 261 uint 64_t cbLine = ((uint64_t)cDisplayWidth * vboxBPP(pScrn) / 8 + 3) & ~3;260 uint32_t cbLine = (cDisplayWidth * vboxBPP(pScrn) / 8 + 3) & ~3; 262 261 return cbLine < INT32_MAX ? cbLine : INT32_MAX; 263 262 } … … 266 265 static inline int32_t vboxDisplayPitch(ScrnInfoPtr pScrn, int32_t cbLine) 267 266 { 268 /* take care not to reference __udivdi3! */ 269 return ASMDivU64ByU32RetU32((uint64_t)cbLine * 8, vboxBPP(pScrn)); 267 return cbLine * 8 / vboxBPP(pScrn); 270 268 } 271 269
Note:
See TracChangeset
for help on using the changeset viewer.