mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-09-02 04:03:56 +00:00
[repos] lgprotocol: import shared protocol definitions
Some checks failed
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
build / module (push) Has been cancelled
build / host-linux (push) Has been cancelled
build / host-windows-cross (push) Has been cancelled
build / host-windows-native (push) Has been cancelled
build / idd (push) Has been cancelled
build / obs (clang) (push) Has been cancelled
build / obs (gcc) (push) Has been cancelled
build / docs (push) Has been cancelled
Some checks failed
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
build / module (push) Has been cancelled
build / host-linux (push) Has been cancelled
build / host-windows-cross (push) Has been cancelled
build / host-windows-native (push) Has been cancelled
build / idd (push) Has been cancelled
build / obs (clang) (push) Has been cancelled
build / obs (gcc) (push) Has been cancelled
build / docs (push) Has been cancelled
Add LGProtocol as a pinned submodule and consume its KVMFR protocol definitions throughout the client, host, IDD, OBS, and profiler. Keep Looking Glass framebuffer helpers local while removing duplicated protocol headers and migrating users to KVMFR-scoped types.
This commit is contained in:
@@ -95,7 +95,8 @@ void egl_desktopRectsFree(EGL_DesktopRects ** rects_)
|
||||
*rects_ = NULL;
|
||||
}
|
||||
|
||||
inline static void rectToVertices(GLfloat * vertex, const FrameDamageRect * rect)
|
||||
inline static void rectToVertices(GLfloat * vertex,
|
||||
const KVMFRFrameDamageRect * rect)
|
||||
{
|
||||
vertex[0] = rect->x;
|
||||
vertex[1] = rect->y;
|
||||
@@ -108,7 +109,7 @@ inline static void rectToVertices(GLfloat * vertex, const FrameDamageRect * rect
|
||||
}
|
||||
|
||||
void egl_desktopRectsUpdate(EGL_DesktopRects * rects,
|
||||
const FrameDamageRect * data, int count, int width, int height)
|
||||
const KVMFRFrameDamageRect * data, int count, int width, int height)
|
||||
{
|
||||
if (count == 0)
|
||||
{
|
||||
@@ -120,7 +121,7 @@ void egl_desktopRectsUpdate(EGL_DesktopRects * rects,
|
||||
GLfloat vertices[vertexCount];
|
||||
if (count < 0)
|
||||
{
|
||||
FrameDamageRect full = {
|
||||
KVMFRFrameDamageRect full = {
|
||||
.x = 0, .y = 0, .width = width, .height = height,
|
||||
};
|
||||
rects->count = 1;
|
||||
@@ -237,7 +238,8 @@ inline static void matrixMultiply(const double matrix[6], double * nx, double *
|
||||
*ny = matrix[1] * x + matrix[3] * y + matrix[5];
|
||||
}
|
||||
|
||||
struct Rect egl_desktopToScreen(const double matrix[6], const struct FrameDamageRect * rect)
|
||||
struct Rect egl_desktopToScreen(const double matrix[6],
|
||||
const struct KVMFRFrameDamageRect * rect)
|
||||
{
|
||||
double x1, y1, x2, y2;
|
||||
matrixMultiply(matrix, &x1, &y1, rect->x, rect->y);
|
||||
@@ -270,7 +272,8 @@ void egl_screenToDesktopMatrix(double matrix[6], int frameWidth, int frameHeight
|
||||
matrix[5] = (inverted[1] * inverted[4] - inverted[0] * inverted[5]) / det;
|
||||
}
|
||||
|
||||
bool egl_screenToDesktop(struct FrameDamageRect * output, const double matrix[6],
|
||||
bool egl_screenToDesktop(struct KVMFRFrameDamageRect * output,
|
||||
const double matrix[6],
|
||||
const struct Rect * rect, int width, int height)
|
||||
{
|
||||
double x1, y1, x2, y2;
|
||||
|
||||
Reference in New Issue
Block a user