summaryrefslogtreecommitdiff
path: root/src/scenes
diff options
context:
space:
mode:
authorPhysick <96335032+DegustatorPonos@users.noreply.github.com>2026-07-28 11:40:45 +0500
committerPhysick <96335032+DegustatorPonos@users.noreply.github.com>2026-07-28 11:40:45 +0500
commit48faa910496b1b3811c2b52f16d5a76f38ca3e48 (patch)
tree5fee26efe25bee28402b56fb29264ab575f758b5 /src/scenes
parent2802c8e8bb987206da0991129e30f0c198cd8f37 (diff)
windows fix
Diffstat (limited to 'src/scenes')
-rw-r--r--src/scenes/puzzleScene.c1
-rw-r--r--src/scenes/resultView.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/scenes/puzzleScene.c b/src/scenes/puzzleScene.c
index 4bf5b60..feeada8 100644
--- a/src/scenes/puzzleScene.c
+++ b/src/scenes/puzzleScene.c
@@ -117,6 +117,7 @@ Scene *CreatePuzzleScene(Puzzle *puzzle) {
puzzleSceneData *data = malloc(sizeof(puzzleSceneData));
data->PuzzlePtr = puzzle;
+ data->scroll = 0;
TextAreaDisplayParams *EditorDisplayParams = malloc(sizeof(TextAreaDisplayParams));
if (EditorDisplayParams != NULL) {
diff --git a/src/scenes/resultView.c b/src/scenes/resultView.c
index c63967a..f3735ed 100644
--- a/src/scenes/resultView.c
+++ b/src/scenes/resultView.c
@@ -58,7 +58,7 @@ bool drawResultView(void *self) {
Rectangle body = GetResultViewBodyRect(data->scroll_up);
DrawRecBordered(body, WHITE, data->value->result == RESULT_OK ? COLORSCHEME_GREEN : COLORSCHEME_ORANGE, BORDER);
- DrawTextInRec(body, data->value->stdout,
+ DrawTextInRec(body, data->value->stdout_sb,
GetMainFont(), 20, COLORSCHEME_BROWN, 3, &data->scroll);
return true;
}