mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-13 13:29:55 -05:00
format code
This commit is contained in:
parent
57e9516266
commit
cf36b8c5ba
1 changed files with 6 additions and 4 deletions
|
|
@ -467,7 +467,8 @@ void client_apply_clip(Client *c, float factor) {
|
||||||
buffer_data.width = clip_box.width;
|
buffer_data.width = clip_box.width;
|
||||||
buffer_data.height = clip_box.height;
|
buffer_data.height = clip_box.height;
|
||||||
buffer_data.width_scale = (float)buffer_data.width / acutal_surface_width;
|
buffer_data.width_scale = (float)buffer_data.width / acutal_surface_width;
|
||||||
buffer_data.height_scale = (float)buffer_data.height / acutal_surface_height;
|
buffer_data.height_scale =
|
||||||
|
(float)buffer_data.height / acutal_surface_height;
|
||||||
buffer_data.percent = percent;
|
buffer_data.percent = percent;
|
||||||
buffer_data.opacity = opacity;
|
buffer_data.opacity = opacity;
|
||||||
|
|
||||||
|
|
@ -475,7 +476,8 @@ void client_apply_clip(Client *c, float factor) {
|
||||||
buffer_data.width_scale = 1.0;
|
buffer_data.width_scale = 1.0;
|
||||||
buffer_data.height_scale = 1.0;
|
buffer_data.height_scale = 1.0;
|
||||||
} else {
|
} else {
|
||||||
buffer_data.width_scale = (float)buffer_data.width / acutal_surface_width;
|
buffer_data.width_scale =
|
||||||
|
(float)buffer_data.width / acutal_surface_width;
|
||||||
buffer_data.height_scale =
|
buffer_data.height_scale =
|
||||||
(float)buffer_data.height / acutal_surface_height;
|
(float)buffer_data.height / acutal_surface_height;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue