summaryrefslogtreecommitdiffstats
path: root/apps/gui/skin_engine/skin_backdrops.c
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2020-10-28 10:32:17 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2020-10-28 13:25:12 -0400
commitc85d8e286549589a38e33d57e2a92d6c99ce5edf (patch)
tree4d4e2fb67b10d9186814b0f3f67a08113d8d8d4f /apps/gui/skin_engine/skin_backdrops.c
parenta605cdf7008f856946cbf01193f4dffc3ee63fdb (diff)
downloadrockbox-c85d8e2865.tar.gz
rockbox-c85d8e2865.tar.bz2
rockbox-c85d8e2865.zip
Framebuffer_viewport Rewrite -- BUG FIX
stride was not initialized for the skin_viewport fixed a few other questionable areas Change-Id: I9cc7830a4406857bf3aba26a328c288e3702cddd
Diffstat (limited to 'apps/gui/skin_engine/skin_backdrops.c')
-rw-r--r--apps/gui/skin_engine/skin_backdrops.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/skin_backdrops.c b/apps/gui/skin_engine/skin_backdrops.c
index caf705af54..20010efa26 100644
--- a/apps/gui/skin_engine/skin_backdrops.c
+++ b/apps/gui/skin_engine/skin_backdrops.c
@@ -210,7 +210,8 @@ void skin_backdrop_set_buffer(int backdrop_id, struct skin_viewport *svp)
return;
else if (backdrop_id < 0)
{
- svp->vp.buffer = NULL; /*Default*/
+ /* SCREEN_MAIN is ok here screen only matters if passed VP is NULL */
+ screens[SCREEN_MAIN].viewport_set_buffer(&svp->vp, NULL); /*Default*/
return;
}
@@ -224,6 +225,7 @@ void skin_backdrop_set_buffer(int backdrop_id, struct skin_viewport *svp)
{
svp->framebuf.elems = LCD_BACKDROP_BYTES / sizeof(fb_data);
}
+ svp->framebuf.stride = 0; /* default stride */
svp->framebuf.get_address_fn = NULL; /*Default iterator*/
screens[screen].viewport_set_buffer(&svp->vp, &svp->framebuf);
}