mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-30 11:11:14 -04:00
format code
This commit is contained in:
parent
db231e5225
commit
9135a3d3f5
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