Changeset 55237 in vbox for trunk/src/VBox/Additions/x11/vboxvideo
- Timestamp:
- Apr 14, 2015 10:16:43 AM (10 years ago)
- Location:
- trunk/src/VBox/Additions/x11/vboxvideo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/setmode.c
r55204 r55237 71 71 # include <unistd.h> 72 72 #endif 73 74 /** Clear the virtual framebuffer in VRAM. Optionally also clear up to the 75 * size of a new framebuffer. Framebuffer sizes larger than available VRAM 76 * be treated as zero and passed over. */ 77 void vbvxClearVRAM(ScrnInfoPtr pScrn, size_t cbOldSize, size_t cbNewSize) 78 { 79 VBOXPtr pVBox = VBOXGetRec(pScrn); 80 81 /* Assume 32BPP - this is just a sanity test. */ 82 VBVXASSERT( cbOldSize / 4 <= VBOX_VIDEO_MAX_VIRTUAL * VBOX_VIDEO_MAX_VIRTUAL 83 && cbNewSize / 4 <= VBOX_VIDEO_MAX_VIRTUAL * VBOX_VIDEO_MAX_VIRTUAL, 84 ("cbOldSize=%llu cbNewSize=%llu, max=%u.\n", (unsigned long long)cbOldSize, (unsigned long long)cbNewSize, 85 VBOX_VIDEO_MAX_VIRTUAL * VBOX_VIDEO_MAX_VIRTUAL)); 86 if (cbOldSize > (size_t)pVBox->cbFBMax) 87 cbOldSize = pVBox->cbFBMax; 88 if (cbNewSize > (size_t)pVBox->cbFBMax) 89 cbNewSize = pVBox->cbFBMax; 90 memset(pVBox->base, 0, max(cbOldSize, cbNewSize)); 91 } 73 92 74 93 /** Clear the virtual framebuffer in VRAM. Optionally also clear up to the -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h
r55236 r55237 257 257 258 258 /* setmode.c */ 259 extern void vbvxClearVRAM(ScrnInfoPtr pScrn, size_t cbOldSize, size_t cbNewSize); 259 260 extern void vbvxSetSolarisMouseRange(int width, int height); 260 261
Note:
See TracChangeset
for help on using the changeset viewer.