wp-fractional-scaling-v1 impl (#1373)

* Initial fractional scaling impl

* apply UV after geom calcs

* fix scaling -> scale

* meson: add fractional scale proto

Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
This commit is contained in:
Vaxry
2023-01-20 19:44:30 +01:00
committed by GitHub
parent cee7bc6e74
commit 60b880d931
12 changed files with 210 additions and 56 deletions

View File

@@ -42,8 +42,10 @@ struct SLayerSurface {
}
};
class CMonitor;
struct SRenderData {
wlr_output* output;
CMonitor* pMonitor;
timespec* when;
int x, y;
@@ -51,7 +53,6 @@ struct SRenderData {
void* data = nullptr;
wlr_surface* surface = nullptr;
int w, h;
void* pMonitor = nullptr;
// for rounding
bool dontRound = true;
@@ -223,7 +224,7 @@ struct STablet {
std::string name = "";
bool operator==(const STablet& b) {
return wlrDevice == b.wlrDevice;
return wlrDevice == b.wlrDevice;
}
};