summaryrefslogtreecommitdiff
path: root/src/screen
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-03-31 19:16:50 -0400
committerAndrew Opalach <andrew@akon.city> 2025-03-31 19:16:50 -0400
commitc8b3ed01a41c0215a4a33ce8468b162463129600 (patch)
treeb29fad1faf0d172e2e46be9a73f9b3bc73f8b29a /src/screen
parent2f34d806e42b6d6299ef46284466b98536485839 (diff)
downloadcamu-c8b3ed01a41c0215a4a33ce8468b162463129600.tar.gz
camu-c8b3ed01a41c0215a4a33ce8468b162463129600.tar.bz2
camu-c8b3ed01a41c0215a4a33ce8468b162463129600.zip
Overall style change, small fixes
- Tweak sink switch_to() order. Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/screen')
-rw-r--r--src/screen/screen.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/screen/screen.c b/src/screen/screen.c
index e35cfa0..62fe7dd 100644
--- a/src/screen/screen.c
+++ b/src/screen/screen.c
@@ -424,13 +424,12 @@ bool camu_screen_create_renderer(struct camu_screen *scr, struct camu_renderer *
static void add_buffer_internal(struct camu_screen *scr, struct camu_video_buffer *buf)
{
- struct camu_screen_video *added;
- al_array_foreach_ptr(scr->videos, i, added) {
- al_assert(added->buf != buf);
+ struct camu_screen_video *active;
+ al_array_foreach_ptr(scr->videos, i, active) {
+ al_assert(active->buf != buf);
}
- struct camu_screen_video video = {
- .buf = buf
- };
+ struct camu_screen_video video = { 0 };
+ video.buf = buf;
struct camu_video_format *fmt = &buf->fmt.req;
if (buf->view.mode != CAMU_VIEW_NONE) {
video.view = buf->view;