From 5344758bc04ef948f22e507531d54eccbff70e18 Mon Sep 17 00:00:00 2001 From: physick Date: Wed, 15 Jul 2026 21:09:40 +0500 Subject: test verification --- src/scenes/resultView.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/scenes/resultView.c') 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)); -- cgit v1.3