summaryrefslogtreecommitdiffstats
path: root/minui/graphics_overlay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'minui/graphics_overlay.cpp')
-rw-r--r--minui/graphics_overlay.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/minui/graphics_overlay.cpp b/minui/graphics_overlay.cpp
index 082d385d9..b7e62d945 100644
--- a/minui/graphics_overlay.cpp
+++ b/minui/graphics_overlay.cpp
@@ -47,7 +47,6 @@
#define ALIGN(x, align) (((x) + ((align)-1)) & ~((align)-1))
MinuiBackendOverlay::MinuiBackendOverlay() :
- gr_draw(nullptr),
fb_fd(-1),
isMDP5(false),
leftSplit(0),
@@ -76,7 +75,6 @@ static memInfo mem_info;
bool MinuiBackendOverlay::target_has_overlay()
{
- int ret;
int mdp_version;
bool overlay_supported = false;
fb_fix_screeninfo fi;
@@ -524,6 +522,7 @@ int MinuiBackendOverlay::free_overlay(int fd)
}
GRSurface* MinuiBackendOverlay::Init() {
+ gr_draw = NULL; // this should be in the constructor but 9.0 was throwing a compile error
if (!target_has_overlay())
return NULL;