ref:5f8dab09889ac4f0dd375e6f98194d9d8d36f7ff

fix: struct ordering broken in 188f1e2959e44b4a463bf4dee616a5cbee6f3557 (#4802)

SHA: 5f8dab09889ac4f0dd375e6f98194d9d8d36f7ff
Author: David Lane <42013603+ReenigneArcher@users.noreply.github.com>
Date: 2026-03-02 13:38
Parents: d157bb1
8 files changed +25 -32
Type
src/input.h +2 −2
@@ -25,8 +25,8 @@
std::shared_ptr<input_t> alloc(safe::mail_t mail);
struct touch_port_t: public platf::touch_port_t {
int env_height;
int env_width;
int env_height;
// Offset x and y coordinates of the client
float client_offsetX;
@@ -35,8 +35,8 @@
float scalar_inv;
float scalar_tpcoords;
int env_logical_height;
int env_logical_width;
int env_logical_height;
explicit operator bool() const {
return width != 0 && height != 0 && env_width != 0 && env_height != 0;
src/platform/common.h +6 −12
@@ -270,12 +270,10 @@
struct touch_port_t {
int offset_x;
int offset_y;
int width;
int height;
int logical_width;
int width;
int logical_height;
int logical_width;
};
// These values must match Limelight-internal.h's SS_FF_* constants!
@@ -541,18 +539,14 @@
// Offsets for when streaming a specific monitor. By default, they are 0.
int offset_x;
int offset_y;
int env_height;
int env_width;
int env_height;
int env_logical_width;
int env_logical_height;
int width;
int env_logical_width;
int height;
int width;
int logical_height;
int logical_width;
int logical_height;
protected:
// collect capture timing data (at loglevel debug)
src/platform/linux/cuda.h +1 −2
@@ -69,9 +69,8 @@
stream_t make_stream(int flags = 0);
struct viewport_t {
int height;
int width;
int height;
int offsetX;
int offsetY;
};
src/platform/linux/graphics.h +4 −4
@@ -266,9 +266,9 @@
class cursor_t: public platf::img_t {
public:
int src_h;
int src_w;
int x;
int y;
int src_w;
int src_h;
unsigned long serial;
@@ -331,9 +331,9 @@
gl::program_t program[3];
gl::buffer_t color_matrix;
int out_height;
int out_width;
int in_height;
int out_height;
int in_width;
int in_height;
int offsetX;
int offsetY;
src/platform/linux/kmsgrab.cpp +6 −6
@@ -296,19 +296,19 @@
struct cursor_t {
// Public properties used during blending
bool visible = false;
std::uint32_t dst_h;
std::uint32_t dst_w;
std::uint32_t src_h;
std::uint32_t src_w;
std::int32_t x;
std::int32_t y;
std::uint32_t dst_w;
std::uint32_t dst_h;
std::uint32_t src_w;
std::uint32_t src_h;
std::vector<std::uint8_t> pixels;
unsigned long serial;
// Private properties used for tracking cursor changes
std::uint64_t prop_src_x;
std::uint64_t prop_src_y;
std::uint64_t prop_src_h;
std::uint64_t prop_src_w;
std::uint64_t prop_src_h;
std::uint32_t fb_id;
};
@@ -1139,7 +1139,7 @@
std::chrono::nanoseconds delay;
int img_width;
int img_height;
int img_width;
int img_offset_x;
int img_offset_y;
src/platform/linux/vaapi.cpp +1 −1
@@ -398,8 +398,8 @@
egl::sws_t sws;
egl::nv12_t nv12;
int height;
int width;
int height;
};
class va_ram_t: public va_t {
src/platform/windows/display.h +1 −1
@@ -347,7 +347,7 @@
winrt::Windows::Graphics::Capture::GraphicsCaptureItem item {nullptr};
winrt::Windows::Graphics::Capture::Direct3D11CaptureFramePool frame_pool {nullptr};
winrt::Windows::Graphics::Capture::GraphicsCaptureSession capture_session {nullptr};
winrt::Windows::Graphics::Capture::Direct3D11CaptureFrame consumed_frame {nullptr};
winrt::Windows::Graphics::Capture::Direct3D11CaptureFrame produced_frame {nullptr};
winrt::Windows::Graphics::Capture::Direct3D11CaptureFrame consumed_frame {nullptr};
SRWLOCK frame_lock = SRWLOCK_INIT;
CONDITION_VARIABLE frame_present_cv;
src/video_colorspace.cpp +4 −4
@@ -123,8 +123,8 @@
const color_t *color_vectors_from_colorspace(const sunshine_colorspace_t &colorspace, bool unorm_output) {
constexpr auto generate_color_vectors = [](const sunshine_colorspace_t &colorspace, bool unorm_output) -> color_t {
// "Table 4 – Interpretation of matrix coefficients (MatrixCoefficients) value" section of ITU-T H.273
double Kb;
double Kr;
double Kb;
switch (colorspace.colorspace) {
case colorspace_e::rec601:
Kr = 0.299;
@@ -143,10 +143,10 @@
}
double Kg = 1.0 - Kr - Kb;
double uv_add;
double uv_mult;
double y_add;
double y_mult;
double y_add;
double uv_mult;
double uv_add;
// "8.3 Matrix coefficients" section of ITU-T H.273
if (colorspace.full_range) {