mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-19 14:33:16 -04:00
opt: Reduce unnecessary text drawing
This commit is contained in:
parent
a515ad9b91
commit
a7acc7f5f3
10 changed files with 308 additions and 194 deletions
|
|
@ -279,7 +279,7 @@ void fadeout_layer_animation_next_tick(LayerSurface *l) {
|
|||
double percent = config.fadeout_begin_opacity -
|
||||
(opacity_eased_progress * config.fadeout_begin_opacity);
|
||||
|
||||
double opacity = MAX(percent, 0.0f);
|
||||
double opacity = MANGO_MAX(percent, 0.0f);
|
||||
|
||||
if (config.animation_fade_out)
|
||||
wlr_scene_node_for_each_buffer(&l->scene->node,
|
||||
|
|
@ -323,10 +323,10 @@ void layer_animation_next_tick(LayerSurface *l) {
|
|||
double opacity_eased_progress =
|
||||
find_animation_curve_at(animation_passed, OPAFADEIN);
|
||||
|
||||
double opacity =
|
||||
MIN(config.fadein_begin_opacity +
|
||||
opacity_eased_progress * (1.0 - config.fadein_begin_opacity),
|
||||
1.0f);
|
||||
double opacity = MANGO_MIN(config.fadein_begin_opacity +
|
||||
opacity_eased_progress *
|
||||
(1.0 - config.fadein_begin_opacity),
|
||||
1.0f);
|
||||
|
||||
if (config.animation_fade_in)
|
||||
wlr_scene_node_for_each_buffer(&l->scene->node,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue