mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2026-01-10 06:55:58 +00:00
Add QXL_ESCAPE_SET_CUSTOM_DISPLAY
QXL_ESCAPE_SET_CUSTOM_DISPLAY is Windows specific message to tell the display & miniport driver to update the mode table with a custom resolution. The mode table needs to be forcefully refreshed after setting a custom display, it can be done by querying an invalid/unknown mode: EnumDisplaySettings(dev_name, 0xffffff, &tempDevMode);
This commit is contained in:
parent
0d01de3108
commit
26cd1946a5
@ -13,6 +13,7 @@ spice_protocol_include_HEADERS = \
|
||||
macros.h \
|
||||
protocol.h \
|
||||
qxl_dev.h \
|
||||
qxl_windows.h \
|
||||
start-packed.h \
|
||||
stats.h \
|
||||
types.h \
|
||||
|
||||
20
spice/qxl_windows.h
Normal file
20
spice/qxl_windows.h
Normal file
@ -0,0 +1,20 @@
|
||||
#ifndef _H_QXL_WINDOWS
|
||||
#define _H_QXL_WINDOWS
|
||||
|
||||
#include <spice/types.h>
|
||||
|
||||
#include <spice/start-packed.h>
|
||||
|
||||
enum {
|
||||
QXL_ESCAPE_SET_CUSTOM_DISPLAY = 0x10001,
|
||||
};
|
||||
|
||||
typedef struct SPICE_ATTR_PACKED QXLEscapeSetCustomDisplay {
|
||||
uint32_t xres;
|
||||
uint32_t yres;
|
||||
uint32_t bpp;
|
||||
} QXLEscapeSetCustomDisplay;
|
||||
|
||||
#include <spice/end-packed.h>
|
||||
|
||||
#endif /* _H_QXL_WINDOWS */
|
||||
Loading…
Reference in New Issue
Block a user