提交 36288917 编写于 作者: D Dawid Zamirski 提交者: John Ferlan

vbox: fix _displayTakeScreenShotPNGToArray

This function was not implemented for vbox 5+ which removed
TakeScreenShotPNGToArray but provides TakeScreenShotToArray with
BitmapFormat_PNG argument which is the same thing.
上级 5a5c6de3
...@@ -2029,21 +2029,20 @@ _displayGetScreenResolution(IDisplay *display ATTRIBUTE_UNUSED, ...@@ -2029,21 +2029,20 @@ _displayGetScreenResolution(IDisplay *display ATTRIBUTE_UNUSED,
} }
static nsresult static nsresult
_displayTakeScreenShotPNGToArray(IDisplay *display ATTRIBUTE_UNUSED, _displayTakeScreenShotPNGToArray(IDisplay *display, PRUint32 screenId,
PRUint32 screenId ATTRIBUTE_UNUSED, PRUint32 width, PRUint32 height,
PRUint32 width ATTRIBUTE_UNUSED, PRUint32 *screenDataSize,
PRUint32 height ATTRIBUTE_UNUSED, PRUint8** screenData)
PRUint32 *screenDataSize ATTRIBUTE_UNUSED, {
PRUint8** screenData ATTRIBUTE_UNUSED) #if VBOX_API_VERSION >= 5000000
{ return display->vtbl->TakeScreenShotToArray(display, screenId, width,
#if VBOX_API_VERSION < 4000000 || VBOX_API_VERSION >= 5000000 height, BitmapFormat_PNG,
vboxUnsupported(); screenDataSize, screenData);
return 0; #else /* VBOX_API_VERSION < 5000000 */
#else /* VBOX_API_VERSION >= 4000000 && VBOX_API_VERSION < 5000000 */
return display->vtbl->TakeScreenShotPNGToArray(display, screenId, width, return display->vtbl->TakeScreenShotPNGToArray(display, screenId, width,
height, screenDataSize, height, screenDataSize,
screenData); screenData);
#endif /* VBOX_API_VERSION >= 4000000 */ #endif /* VBOX_API_VERSION >= 5000000 */
} }
static nsresult static nsresult
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册