Changeset 69064 in vbox for trunk/src/VBox/Additions/x11
- Timestamp:
- Oct 12, 2017 6:18:01 PM (7 years ago)
- Location:
- trunk/src/VBox/Additions/x11/vboxvideo
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/getmode.c
r69058 r69064 175 175 } 176 176 177 static bool useHardwareCursor(uint32_t fCursorCapabilities)177 static Bool useHardwareCursor(uint32_t fCursorCapabilities) 178 178 { 179 179 if (fCursorCapabilities & VBOX_VBVA_CURSOR_CAPABILITY_HARDWARE) … … 182 182 } 183 183 184 static void compareAndMaybeSetUseHardwareCursor(VBOXPtr pVBox, uint32_t fCursorCapabilities, bool *pfChanged, bool fSet)184 static void compareAndMaybeSetUseHardwareCursor(VBOXPtr pVBox, uint32_t fCursorCapabilities, Bool *pfChanged, Bool fSet) 185 185 { 186 186 if (pVBox->fUseHardwareCursor != useHardwareCursor(fCursorCapabilities)) … … 202 202 /** Read in information about the most recent size hints and cursor 203 203 * capabilities requested for the guest screens from HGSMI. */ 204 void vbvxReadSizesAndCursorIntegrationFromHGSMI(ScrnInfoPtr pScrn, bool *pfNeedUpdate)204 void vbvxReadSizesAndCursorIntegrationFromHGSMI(ScrnInfoPtr pScrn, Bool *pfNeedUpdate) 205 205 { 206 206 VBOXPtr pVBox = VBOXGetRec(pScrn); 207 207 int rc; 208 208 unsigned i; 209 bool fChanged = false;209 Bool fChanged = false; 210 210 uint32_t fCursorCapabilities; 211 211 -
trunk/src/VBox/Additions/x11/vboxvideo/setmode.c
r69058 r69064 85 85 * mode set and tell the host we support advanced graphics functions. 86 86 */ 87 void vbvxSetMode(ScrnInfoPtr pScrn, unsigned cDisplay, unsigned cWidth, unsigned cHeight, int x, int y, bool fEnabled,88 bool fConnected, struct vbvxFrameBuffer *pFrameBuffer)87 void vbvxSetMode(ScrnInfoPtr pScrn, unsigned cDisplay, unsigned cWidth, unsigned cHeight, int x, int y, Bool fEnabled, 88 Bool fConnected, struct vbvxFrameBuffer *pFrameBuffer) 89 89 { 90 90 VBOXPtr pVBox = VBOXGetRec(pScrn); … … 92 92 uint16_t fFlags; 93 93 int rc; 94 bool fEnabledAndVisible = fEnabled && x + cWidth <= pFrameBuffer->cWidth && y + cHeight <= pFrameBuffer->cHeight;94 Bool fEnabledAndVisible = fEnabled && x + cWidth <= pFrameBuffer->cWidth && y + cHeight <= pFrameBuffer->cHeight; 95 95 /* Recent host code has a flag to blank the screen; older code needs BPP set to zero. */ 96 96 uint32_t cBPP = fEnabledAndVisible || pVBox->fHostHasScreenBlankingFlag ? pFrameBuffer->cBPP : 0; -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
r69058 r69064 117 117 static void VBOXSaveMode(ScrnInfoPtr pScrn); 118 118 static void VBOXRestoreMode(ScrnInfoPtr pScrn); 119 static void setSizesAndCursorIntegration(ScrnInfoPtr pScrn, bool fScreenInitTime);119 static void setSizesAndCursorIntegration(ScrnInfoPtr pScrn, Bool fScreenInitTime); 120 120 121 121 #ifndef XF86_SCRN_INTERFACE … … 289 289 * the virtual frame- 290 290 * buffer matching what the X server expects. */ 291 static void setModeRandR11(ScrnInfoPtr pScrn, DisplayModePtr pMode, bool fScreenInitTime, bool fEnterVTTime,291 static void setModeRandR11(ScrnInfoPtr pScrn, DisplayModePtr pMode, Bool fScreenInitTime, Bool fEnterVTTime, 292 292 int cXOverRide, int cYOverRide) 293 293 { … … 1031 1031 #endif 1032 1032 1033 static void setSizesAndCursorIntegration(ScrnInfoPtr pScrn, bool fScreenInitTime)1033 static void setSizesAndCursorIntegration(ScrnInfoPtr pScrn, Bool fScreenInitTime) 1034 1034 { 1035 1035 RT_NOREF(fScreenInitTime); … … 1056 1056 { 1057 1057 ScrnInfoPtr pScrn = (ScrnInfoPtr)pData; 1058 bool fNeedUpdate = false;1058 Bool fNeedUpdate = false; 1059 1059 1060 1060 (void)pTimeout; -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h
r69058 r69064 162 162 unsigned long cbView; 163 163 /** Whether the pre-X-server mode was a VBE mode */ 164 bool fSavedVBEMode;164 Bool fSavedVBEMode; 165 165 /** Paramters of the saved pre-X-server VBE mode, invalid if there is none 166 166 */ … … 179 179 struct VBoxScreen *pScreens; 180 180 /** Can we get mode hint and cursor integration information from HGSMI? */ 181 bool fHaveHGSMIModeHints;181 Bool fHaveHGSMIModeHints; 182 182 /** Does the host support the screen blanking flag? */ 183 bool fHostHasScreenBlankingFlag;183 Bool fHostHasScreenBlankingFlag; 184 184 /** Array of structures for receiving mode hints. */ 185 185 VBVAMODEHINT *paVBVAModeHints; … … 226 226 227 227 extern void vbvxClearVRAM(ScrnInfoPtr pScrn, size_t cbOldSize, size_t cbNewSize); 228 extern void vbvxSetMode(ScrnInfoPtr pScrn, unsigned cDisplay, unsigned cWidth, unsigned cHeight, int x, int y, bool fEnabled,229 bool fConnected, struct vbvxFrameBuffer *pFrameBuffer);228 extern void vbvxSetMode(ScrnInfoPtr pScrn, unsigned cDisplay, unsigned cWidth, unsigned cHeight, int x, int y, Bool fEnabled, 229 Bool fConnected, struct vbvxFrameBuffer *pFrameBuffer); 230 230 extern void vbvxSetSolarisMouseRange(int width, int height); 231 231 … … 243 243 extern void vboxAddModes(ScrnInfoPtr pScrn); 244 244 extern void VBoxInitialiseSizeHints(ScrnInfoPtr pScrn); 245 extern void vbvxReadSizesAndCursorIntegrationFromProperties(ScrnInfoPtr pScrn, bool *pfNeedUpdate);246 extern void vbvxReadSizesAndCursorIntegrationFromHGSMI(ScrnInfoPtr pScrn, bool *pfNeedUpdate);245 extern void vbvxReadSizesAndCursorIntegrationFromProperties(ScrnInfoPtr pScrn, Bool *pfNeedUpdate); 246 extern void vbvxReadSizesAndCursorIntegrationFromHGSMI(ScrnInfoPtr pScrn, Bool *pfNeedUpdate); 247 247 extern void vbvxSetUpLinuxACPI(ScreenPtr pScreen); 248 248 extern void vbvxCleanUpLinuxACPI(ScreenPtr pScreen); -
trunk/src/VBox/Additions/x11/vboxvideo/vbva.c
r69058 r69064 183 183 } 184 184 185 static bool haveHGSMIModeHintAndCursorReportingInterface(VBOXPtr pVBox)185 static Bool haveHGSMIModeHintAndCursorReportingInterface(VBOXPtr pVBox) 186 186 { 187 187 uint32_t fModeHintReporting, fCursorReporting; … … 193 193 } 194 194 195 static bool hostHasScreenBlankingFlag(VBOXPtr pVBox)195 static Bool hostHasScreenBlankingFlag(VBOXPtr pVBox) 196 196 { 197 197 uint32_t fScreenFlags; … … 211 211 vboxEnableVbva(ScrnInfoPtr pScrn) 212 212 { 213 bool rc = TRUE;213 Bool rc = TRUE; 214 214 unsigned i; 215 215 VBOXPtr pVBox = pScrn->driverPrivate;
Note:
See TracChangeset
for help on using the changeset viewer.