summaryrefslogtreecommitdiff
path: root/src/scenes/resultView.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/scenes/resultView.c')
-rw-r--r--src/scenes/resultView.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/scenes/resultView.c b/src/scenes/resultView.c
index 033d17e..c63967a 100644
--- a/src/scenes/resultView.c
+++ b/src/scenes/resultView.c
@@ -56,7 +56,8 @@ bool drawResultView(void *self) {
ResultViewData *data = ((Scene *)self)->data;
// DrawBackground();
Rectangle body = GetResultViewBodyRect(data->scroll_up);
- DrawRecBordered(body, WHITE, COLORSCHEME_ORANGE, BORDER);
+
+ DrawRecBordered(body, WHITE, data->value->result == RESULT_OK ? COLORSCHEME_GREEN : COLORSCHEME_ORANGE, BORDER);
DrawTextInRec(body, data->value->stdout,
GetMainFont(), 20, COLORSCHEME_BROWN, 3, &data->scroll);
return true;
@@ -75,7 +76,7 @@ Scene *CreateResultView(SubmitionResult *result) {
Scene *outp = malloc(sizeof(Scene));
outp->Draw = drawResultView;
outp->Update = updateResultView;
- outp->Deint = deinitResultView;
+ outp->Deint = deinitResultView;
outp->IsTransparent = true;
ResultViewData *data = malloc(sizeof(ResultViewData));