compile/run ok, issue with backlight

This commit is contained in:
aanper
2020-10-15 18:56:47 +03:00
parent 78e016412e
commit f0f3615c55
10 changed files with 87 additions and 74 deletions

View File

@@ -7,6 +7,8 @@
#include "gui.h"
#include "gui_i.h"
// TODO add mutex to widget ops
struct Widget {
void* gui;
bool is_enabled;
@@ -14,7 +16,7 @@ struct Widget {
void* draw_callback_context;
WidgetInputCallback input_callback;
void* input_callback_context;
}
};
Widget* widget_alloc(WidgetDrawCallback callback, void* callback_context) {
Widget* widget = furi_alloc(sizeof(Widget));