mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 19:09:48 +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;
|
||||
// if (RDATA->surface) {
|
||||
// windowBox = {(int)outputX + RDATA->x + x, (int)outputY + RDATA->y + y, RDATA->w, RDATA->h};
|
||||
// wlr_renderer_scissor(g_pCompositor->m_sWLRRenderer, &windowBox);
|
||||
// } else {
|
||||
if (RDATA->surface) {
|
||||
windowBox = {(int)outputX + RDATA->x + x, (int)outputY + RDATA->y + y, RDATA->w, RDATA->h};
|
||||
wlr_renderer_scissor(g_pCompositor->m_sWLRRenderer, &windowBox);
|
||||
} else {
|
||||
windowBox = {(int)outputX + RDATA->x + x, (int)outputY + RDATA->y + y, surface->current.width, surface->current.height};
|
||||
// }
|
||||
}
|
||||
scaleBox(&windowBox, RDATA->output->scale);
|
||||
|
||||
const auto TRANSFORM = wlr_output_transform_invert(surface->current.transform);
|
||||
|
|
Loading…
Reference in a new issue