mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-22 20:57:06 +00:00
[client] egl: fix out by one error with letterbox rendering
This replaces the scaled `destRect` with a version that uses doubles correcting the rounding error that is causing a failure to properly clear the black bar areas.
This commit is contained in:
parent
55703b61b7
commit
4b4a75475a
@ -87,7 +87,7 @@ struct Inst
|
|||||||
|
|
||||||
int width, height;
|
int width, height;
|
||||||
float uiScale;
|
float uiScale;
|
||||||
LG_RendererRect destRect;
|
struct DoubleRect destRect;
|
||||||
LG_RendererRotate rotate; //client side rotation
|
LG_RendererRotate rotate; //client side rotation
|
||||||
|
|
||||||
float translateX , translateY;
|
float translateX , translateY;
|
||||||
|
@ -38,6 +38,11 @@ struct Rect
|
|||||||
int x, y, w, h;
|
int x, y, w, h;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct DoubleRect
|
||||||
|
{
|
||||||
|
double x, y, w, h;
|
||||||
|
};
|
||||||
|
|
||||||
struct Border
|
struct Border
|
||||||
{
|
{
|
||||||
int left, top, right, bottom;
|
int left, top, right, bottom;
|
||||||
|
Loading…
Reference in New Issue
Block a user