Changeset 33575 in vbox
- Timestamp:
- Oct 28, 2010 4:55:29 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxVideo.h
r33222 r33575 1251 1251 #define VBOXVDMACMD_BODY(_pCmd, _t) ( (_t*)(((uint8_t*)(_pCmd)) + VBOXVDMACMD_HEADER_SIZE()) ) 1252 1252 #define VBOXVDMACMD_FROM_BODY(_pCmd) ( (VBOXVDMACMD*)(((uint8_t*)(_pCmd)) - VBOXVDMACMD_HEADER_SIZE()) ) 1253 #define VBOXVDMACMD_BODY_FIELD_OFFSET(_ot, _t, _f) ( (_ot)( VBOXVDMACMD_BODY(0, uint8_t) + RT_OFFSETOF(_t, _f) ) )1253 #define VBOXVDMACMD_BODY_FIELD_OFFSET(_ot, _t, _f) ( (_ot)(uintptr_t)( VBOXVDMACMD_BODY(0, uint8_t) + RT_OFFSETOF(_t, _f) ) ) 1254 1254 1255 1255 typedef struct VBOXVDMACMD_DMA_PRESENT_BLT -
trunk/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp
r33574 r33575 511 511 } 512 512 513 #ifdef VBOX_VDMA_WITH_WORKERTHREAD 513 514 int iView = 0; 514 515 /* @todo: fixme: check if update is needed and get iView */ 515 516 vboxVDMANotifyPrimaryUpdate (pVdma->pVGAState, iView, &updateRectl); 517 #endif 516 518 517 519 return cbBlt; … … 646 648 if (cbBlt >= 0) 647 649 { 648 if ( cbBlt == cbBuffer)650 if ((uint32_t)cbBlt == cbBuffer) 649 651 return VINF_SUCCESS; 650 652 else … … 666 668 if (cbTransfer >= 0) 667 669 { 668 if ( cbTransfer == cbBuffer)670 if ((uint32_t)cbTransfer == cbBuffer) 669 671 return VINF_SUCCESS; 670 672 else
Note:
See TracChangeset
for help on using the changeset viewer.