mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 01:25:58 +01:00
didnt mean to comment that out
This commit is contained in:
parent
172f8b04f0
commit
411a050169
1 changed files with 5 additions and 5 deletions
|
@ -20,12 +20,12 @@ void renderSurface(struct wlr_surface* surface, int x, int y, void* data) {
|
||||||
|
|
||||||
|
|
||||||
wlr_box windowBox;
|
wlr_box windowBox;
|
||||||
// if (RDATA->surface) {
|
if (RDATA->surface) {
|
||||||
// windowBox = {(int)outputX + RDATA->x + x, (int)outputY + RDATA->y + y, RDATA->w, RDATA->h};
|
windowBox = {(int)outputX + RDATA->x + x, (int)outputY + RDATA->y + y, RDATA->w, RDATA->h};
|
||||||
// wlr_renderer_scissor(g_pCompositor->m_sWLRRenderer, &windowBox);
|
wlr_renderer_scissor(g_pCompositor->m_sWLRRenderer, &windowBox);
|
||||||
// } else {
|
} else {
|
||||||
windowBox = {(int)outputX + RDATA->x + x, (int)outputY + RDATA->y + y, surface->current.width, surface->current.height};
|
windowBox = {(int)outputX + RDATA->x + x, (int)outputY + RDATA->y + y, surface->current.width, surface->current.height};
|
||||||
// }
|
}
|
||||||
scaleBox(&windowBox, RDATA->output->scale);
|
scaleBox(&windowBox, RDATA->output->scale);
|
||||||
|
|
||||||
const auto TRANSFORM = wlr_output_transform_invert(surface->current.transform);
|
const auto TRANSFORM = wlr_output_transform_invert(surface->current.transform);
|
||||||
|
|
Loading…
Reference in a new issue