diff options
| author | Physick <96335032+DegustatorPonos@users.noreply.github.com> | 2026-08-03 00:46:21 +0500 |
|---|---|---|
| committer | Physick <96335032+DegustatorPonos@users.noreply.github.com> | 2026-08-03 00:46:21 +0500 |
| commit | 56f152cf57e0bd3491be74195905b863519d9fca (patch) | |
| tree | 671022de4608efbeb7efa7278d9404e8ae9b5303 /src/scenes/resultView.c | |
| parent | d1a1ebd54cabc6646f20f6b1b341751a2bf3c2ec (diff) | |
memory leak issues + qol stull
Diffstat (limited to 'src/scenes/resultView.c')
| -rw-r--r-- | src/scenes/resultView.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/scenes/resultView.c b/src/scenes/resultView.c index f3735ed..567cb02 100644 --- a/src/scenes/resultView.c +++ b/src/scenes/resultView.c @@ -1,6 +1,7 @@ #include <raylib.h> #include <stdarg.h> #include <stddef.h> +#include <stdint.h> #include <stdlib.h> #include "scenes.h" #include "../ui_elements/UI.h" @@ -9,6 +10,7 @@ static const int PADDING = 20; static const int BORDER = 2; static const int SCROLL_SPEED = 10; +static const uint8_t MAX_TINT = 96; typedef struct { SubmitionResult *value; @@ -54,6 +56,9 @@ bool updateResultView(void *self) { bool drawResultView(void *self) { ResultViewData *data = ((Scene *)self)->data; + DrawRectangle(0, 0, + GetScreenWidth(), GetScreenHeight(), + (Color) {0, 0, 0, MAX_TINT * (1 - data->scroll_up) }); // DrawBackground(); Rectangle body = GetResultViewBodyRect(data->scroll_up); |
