mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-07-24 00:02:03 +00:00
[client] egl: fix SPICE video rendering to a HDR surface
If the last state had HDR enabled, the spice video surface was being rendered as HDR even though the SPICE video content is SDR. This corrects this.
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
*/
|
||||
|
||||
#include "common/ll.h"
|
||||
#include "interface/renderer.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@@ -28,6 +29,7 @@ typedef struct
|
||||
SPICE_OP_DRAW_FILL,
|
||||
SPICE_OP_DRAW_BITMAP,
|
||||
SPICE_OP_SHOW,
|
||||
SURFACE_OP_FORMAT,
|
||||
CURSOR_OP_STATE,
|
||||
CURSOR_OP_IMAGE,
|
||||
}
|
||||
@@ -65,6 +67,13 @@ typedef struct
|
||||
}
|
||||
spiceShow;
|
||||
|
||||
struct
|
||||
{
|
||||
LG_RendererFormat format;
|
||||
bool rendererSupportsNativeHDR;
|
||||
}
|
||||
surfaceFormat;
|
||||
|
||||
struct
|
||||
{
|
||||
bool visible;
|
||||
@@ -103,6 +112,9 @@ void renderQueue_spiceDrawBitmap(int x, int y, int width, int height, int stride
|
||||
|
||||
void renderQueue_spiceShow(bool show);
|
||||
|
||||
void renderQueue_surfaceFormat(const LG_RendererFormat format,
|
||||
bool rendererSupportsNativeHDR);
|
||||
|
||||
void renderQueue_cursorState(bool visible, int x, int y, int hx, int hy);
|
||||
|
||||
void renderQueue_cursorImage(bool monochrome, int width, int height, int pitch,
|
||||
|
||||
Reference in New Issue
Block a user