add the undo and clear commands with their icons
This commit is contained in:
@@ -5,7 +5,7 @@ SPLASHSCREEN=splash-vmwcblk.png
|
||||
OBJS=main.o sysinput.o ep_init.o ep_upiwin.o ep_backlight.o ep_msg.o ep_graphics.o ep_devctxt.o ep_bitmap.o \
|
||||
ep_upiwin_tmp.o ep_util.o fbinit.o rect.o gfxobj.o devctxt.o dc_screen.o fontengine.o \
|
||||
bitmap.o stockobj.o fbprimitive.o log.o gpio.o msg_queue.o time_func.o config.o \
|
||||
i_freehand.o i_line.o i_rect.o i_fillrect.o splash.o
|
||||
i_freehand.o i_line.o i_rect.o i_fillrect.o i_undo.o i_clear.o splash.o
|
||||
LIBS=-lpython3.7m -lcrypt -lfreetype -lbcm2835 -lpthread -ldl -lutil -lm
|
||||
CFLAGS=-I/usr/include/python3.7m -I/usr/include/freetype2 -I/usr/include/libpng16 \
|
||||
-Wall -Werror -fstack-protector -fwrapv -fno-PIE -g -O3 -DDEBUG_ASSERT
|
||||
@@ -39,5 +39,11 @@ i_rect.bin: $(RESOURCES)/i_rect.png $(BUILDUTILS)/mkgfx
|
||||
i_fillrect.bin: $(RESOURCES)/i_fillrect.png $(BUILDUTILS)/mkgfx
|
||||
$(BUILDUTILS)/mkgfx $(RESOURCES)/i_fillrect.png i_fillrect.bin
|
||||
|
||||
i_undo.bin: $(RESOURCES)/i_undo.png $(BUILDUTILS)/mkgfx
|
||||
$(BUILDUTILS)/mkgfx $(RESOURCES)/i_undo.png undo.bin
|
||||
|
||||
i_clear.bin: $(RESOURCES)/i_clear.png $(BUILDUTILS)/mkgfx
|
||||
$(BUILDUTILS)/mkgfx $(RESOURCES)/i_clear.png i_clear.bin
|
||||
|
||||
clean:
|
||||
rm -f upiwin *.o splash.bin *~
|
||||
|
||||
@@ -20,6 +20,14 @@ extern uint8_t _binary_i_fillrect_bin_start[];
|
||||
extern uint8_t _binary_i_fillrect_bin_end;
|
||||
extern uint8_t _binary_i_fillrect_bin_size;
|
||||
|
||||
extern uint8_t _binary_i_undo_bin_start[];
|
||||
extern uint8_t _binary_i_undo_bin_end;
|
||||
extern uint8_t _binary_i_undo_bin_size;
|
||||
|
||||
extern uint8_t _binary_i_clear_bin_start[];
|
||||
extern uint8_t _binary_i_clear_bin_end;
|
||||
extern uint8_t _binary_i_clear_bin_size;
|
||||
|
||||
typedef struct tagSTOCKBITMAPDESC {
|
||||
PCSTR name;
|
||||
INT32 width;
|
||||
@@ -32,6 +40,8 @@ static const STOCKBITMAPDESC stock_bitmaps[] = {
|
||||
{"line", 48, 48, _binary_i_line_bin_start },
|
||||
{"rect", 48, 48, _binary_i_rect_bin_start },
|
||||
{"fillrect", 48, 48, _binary_i_fillrect_bin_start },
|
||||
{"undo", 48, 48, _binary_i_undo_bin_start },
|
||||
{"clear", 48, 48, _binary_i_clear_bin_start },
|
||||
{NULL, 0, 0, NULL }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user