mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-05 13:29:50 -05:00
Optimize wl_fixed_t to/from double conversion functions
This commit is contained in:
parent
fefa8c0fd5
commit
f5df38959b
5 changed files with 211 additions and 12 deletions
|
|
@ -853,7 +853,7 @@ wl_closure_print(struct wl_closure *closure, struct wl_object *target, int send)
|
|||
break;
|
||||
case 'f':
|
||||
si = (int32_t) value->uint32;
|
||||
fprintf(stderr, "%f", (double) si / 256.0);
|
||||
fprintf(stderr, "%f", wl_fixed_to_double(si));
|
||||
break;
|
||||
case 's':
|
||||
fprintf(stderr, "\"%s\"", value->string);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue