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

This commit is contained in:
David Lane
2026-03-02 08:38:23 -05:00
committed by GitHub
parent d157bb1d1e
commit 5f8dab0988
8 changed files with 25 additions and 32 deletions
+2 -2
View File
@@ -25,8 +25,8 @@ namespace input {
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 @@ namespace input {
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;
+6 -12
View File
@@ -270,12 +270,10 @@ namespace platf {
struct touch_port_t {
int offset_x;
int offset_y;
int height;
int width;
int logical_height;
int height;
int logical_width;
int logical_height;
};
// These values must match Limelight-internal.h's SS_FF_* constants!
@@ -541,18 +539,14 @@ namespace platf {
// 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_logical_height;
int env_height;
int env_logical_width;
int height;
int env_logical_height;
int width;
int logical_height;
int height;
int logical_width;
int logical_height;
protected:
// collect capture timing data (at loglevel debug)
+1 -2
View File
@@ -69,9 +69,8 @@ namespace cuda {
stream_t make_stream(int flags = 0);
struct viewport_t {
int height;
int width;
int height;
int offsetX;
int offsetY;
};
+4 -4
View File
@@ -266,10 +266,10 @@ namespace egl {
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,10 +331,10 @@ namespace egl {
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;
+6 -6
View File
@@ -296,20 +296,20 @@ namespace platf {
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,8 +1139,8 @@ namespace platf {
std::chrono::nanoseconds delay;
int img_height;
int img_width;
int img_height;
int img_offset_x;
int img_offset_y;
+1 -1
View File
@@ -398,8 +398,8 @@ namespace va {
egl::sws_t sws;
egl::nv12_t nv12;
int height;
int width;
int height;
};
class va_ram_t: public va_t {
+1 -1
View File
@@ -347,8 +347,8 @@ namespace platf::dxgi {
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;
+4 -4
View File
@@ -123,8 +123,8 @@ namespace video {
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 @@ namespace video {
}
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) {