From dd2332737df3f4509c818ce45ea6657c42cd6243 Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Mon, 9 Oct 2017 08:55:15 +0300 Subject: [PATCH] Revert "Run button on code editor" This reverts commit 75b16b8618dd38b65f01d9cf9507547928dcd436. --- src/code.c | 6 ------ src/studio.c | 13 ++----------- src/studio.h | 1 - 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/src/code.c b/src/code.c index 37d497e..73da56e 100644 --- a/src/code.c +++ b/src/code.c @@ -835,11 +835,6 @@ static void redo(Code* code) update(code); } -static void run() -{ - setStudioMode(TIC_RUN_MODE); -} - static void doTab(Code* code, bool shift) { char* pos = code->cursor.position; @@ -1807,7 +1802,6 @@ static void onStudioEvent(Code* code, StudioEvent event) case TIC_TOOLBAR_PASTE: copyFromClipboard(code); break; case TIC_TOOLBAR_UNDO: undo(code); break; case TIC_TOOLBAR_REDO: redo(code); break; - case TIC_TOOLBAR_RUN: run(); break; } } diff --git a/src/studio.c b/src/studio.c index da4b293..0c98848 100644 --- a/src/studio.c +++ b/src/studio.c @@ -456,20 +456,11 @@ void drawExtrabar(tic_mem* tic) 0b00110000, 0b00000000, 0b00000000, - - 0b00000000, - 0b01000000, - 0b01100000, - 0b01110000, - 0b01100000, - 0b01000000, - 0b00000000, - 0b00000000, }; static const s32 Colors[] = {8, 9, 6, 5, 5}; - static const StudioEvent Events[] = {TIC_TOOLBAR_CUT, TIC_TOOLBAR_COPY, TIC_TOOLBAR_PASTE, TIC_TOOLBAR_UNDO, TIC_TOOLBAR_REDO, TIC_TOOLBAR_RUN}; - static const char* Tips[] = {"CUT [ctrl+x]", "COPY [ctrl+c]", "PASTE [ctrl+v]", "UNDO [ctrl+z]", "REDO [ctrl+y]","RUN [ctrl+r]"}; + static const StudioEvent Events[] = {TIC_TOOLBAR_CUT, TIC_TOOLBAR_COPY, TIC_TOOLBAR_PASTE, TIC_TOOLBAR_UNDO, TIC_TOOLBAR_REDO}; + static const char* Tips[] = {"CUT [ctrl+x]", "COPY [ctrl+c]", "PASTE [ctrl+v]", "UNDO [ctrl+z]", "REDO [ctrl+y]"}; for(s32 i = 0; i < sizeof Icons / BITS_IN_BYTE; i++) { diff --git a/src/studio.h b/src/studio.h index 2b82b68..7c2691d 100644 --- a/src/studio.h +++ b/src/studio.h @@ -172,7 +172,6 @@ typedef enum TIC_TOOLBAR_PASTE, TIC_TOOLBAR_UNDO, TIC_TOOLBAR_REDO, - TIC_TOOLBAR_RUN, } StudioEvent; void setStudioEvent(StudioEvent event);