diff options
| author | physick <mynameisgennadiy@vk.com> | 2026-07-15 21:09:40 +0500 |
|---|---|---|
| committer | physick <mynameisgennadiy@vk.com> | 2026-07-15 21:09:40 +0500 |
| commit | 5344758bc04ef948f22e507531d54eccbff70e18 (patch) | |
| tree | 0d45d24899cf826497af9068496dca597d966cca /src/scenes/resultView.c | |
| parent | 8b79b8149d1e23d90b5871f980aec65d8aa7ae23 (diff) | |
test verification
Diffstat (limited to 'src/scenes/resultView.c')
| -rw-r--r-- | src/scenes/resultView.c | 5 |
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)); |
