summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-1bit-vert.c
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-04-17 10:36:33 -0400
committerWilliam Wilgus <me.theuser@yahoo.com>2022-04-17 10:59:56 -0400
commitc4156b1909175cd74154fa4217be053c1180ae9c (patch)
tree0511ee767f000a6b9fe0cc9c06503b8a4b28f647 /firmware/drivers/lcd-1bit-vert.c
parent6703f43f5cc6c6d2f4983aaafd4bcfd582b133cf (diff)
downloadrockbox-c4156b1909175cd74154fa4217be053c1180ae9c.tar.gz
rockbox-c4156b1909175cd74154fa4217be053c1180ae9c.zip
viewports, set flags to VP_DEFAULT_FLAGS
flags were getting un-initialized memory it really didn't matter with the flags getting initialized anyway But once I added a new flag that didn't explicitly set or clear the flag at init well here we are set flags to VP_DEFAULT_FLAGS in viewport_set_defaults() add the flags variable to the default vp's set to 0 (it was already initialized to 0 by bss, make it explicit) Change-Id: I3a9a062455b4cf66d2b8c70fdf05402a5c0c091c
Diffstat (limited to 'firmware/drivers/lcd-1bit-vert.c')
-rw-r--r--firmware/drivers/lcd-1bit-vert.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/drivers/lcd-1bit-vert.c b/firmware/drivers/lcd-1bit-vert.c
index c86ced9b6c..dcf5e49504 100644
--- a/firmware/drivers/lcd-1bit-vert.c
+++ b/firmware/drivers/lcd-1bit-vert.c
@@ -71,6 +71,7 @@ static struct viewport default_vp =
71 .y = 0, 71 .y = 0,
72 .width = LCDM(WIDTH), 72 .width = LCDM(WIDTH),
73 .height = LCDM(HEIGHT), 73 .height = LCDM(HEIGHT),
74 .flags = 0,
74 .font = FONT_SYSFIXED, 75 .font = FONT_SYSFIXED,
75 .drawmode = DRMODE_SOLID, 76 .drawmode = DRMODE_SOLID,
76 .buffer = NULL, 77 .buffer = NULL,