diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2025-01-20 06:03:07 +0100 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2025-01-20 06:03:07 +0100 |
commit | e310ae460d1e9f232f7e75e782eaced1fea3ae90 (patch) | |
tree | 221c684a85795d34c5506c806c1beadcb8961505 | |
parent | 46921f9a29552ac34edaeebdb815d6466955c60c (diff) | |
download | reduced_system_layer-e310ae460d1e9f232f7e75e782eaced1fea3ae90.zip |
Fix unused func
-rw-r--r-- | reduced_system_layer.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/reduced_system_layer.c b/reduced_system_layer.c index 3eda619..2a04a22 100644 --- a/reduced_system_layer.c +++ b/reduced_system_layer.c @@ -776,14 +776,6 @@ static u32 rgb_u32_from_f32_(vec3_f32 c) { return (r << 16) | (g << 8) | b; } -static vec3_f32 rgb_f32_from_u32_(u32 c) { - return (vec3_f32) { - .x = ((c >> 16) & 0xff) / 255.f, - .y = ((c >> 8) & 0xff) / 255.f, - .z = ( c & 0xff) / 255.f, - }; -} - static i64 average_frame_duration_(i64 duration) { _frame_duration[_frame_index] = duration; _frame_index = (_frame_index + 1) % NUM_FRAMES_AVERAGED; @@ -1846,6 +1838,14 @@ b8 check_format_(i32 format) { return 0; } +static vec3_f32 rgb_f32_from_u32_(u32 c) { + return (vec3_f32) { + .x = ((c >> 16) & 0xff) / 255.f, + .y = ((c >> 8) & 0xff) / 255.f, + .z = ( c & 0xff) / 255.f, + }; +} + b8 wayland_screenshot_(i64 max_num_pixels, i64 *width, i64 *height, vec4_f32 *pixels) { b8 ok = 0; |