[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:
Geoffrey McRae 2021-08-03 22:27:46 +10:00
parent 55703b61b7
commit 4b4a75475a
2 changed files with 6 additions and 1 deletions

View file

@ -87,7 +87,7 @@ struct Inst
int width, height;
float uiScale;
LG_RendererRect destRect;
struct DoubleRect destRect;
LG_RendererRotate rotate; //client side rotation
float translateX , translateY;

View file

@ -38,6 +38,11 @@ struct Rect
int x, y, w, h;
};
struct DoubleRect
{
double x, y, w, h;
};
struct Border
{
int left, top, right, bottom;