add wlroots as a submodule for reference
Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
@@ -329,12 +329,22 @@ void LunarWM_render_windows(LunarWM *this, bool alpha_check)
|
||||
continue;
|
||||
}
|
||||
if (tl->gles_texture) {
|
||||
if (alpha_check && tl->gles_texture->has_alpha) {
|
||||
if (alpha_check && tl->composed_has_alpha) {
|
||||
continue;
|
||||
}
|
||||
Texture2D tex = tl->rl_texture;
|
||||
bool y_flip = false;
|
||||
if (IsRenderTextureValid(tl->surface_rt)) {
|
||||
tex = tl->surface_rt.texture;
|
||||
tex.width = tl->rl_texture.width;
|
||||
tex.height = tl->rl_texture.height;
|
||||
y_flip = true;
|
||||
}
|
||||
if (!tex.id)
|
||||
continue;
|
||||
float rad = window->coord.r - 0.01f * (float)i;
|
||||
DrawTextureCyl2(tl->rl_texture, Vector3Zero(), window->coord, rad,
|
||||
this->cman->cfg.space.window_scale, false);
|
||||
DrawTextureCyl2(tex, Vector3Zero(), window->coord, rad,
|
||||
this->cman->cfg.space.window_scale, y_flip);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user