aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/scripting.c2
-rw-r--r--src/sldj.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/scripting.c b/src/scripting.c
index 9781f5f..f0a2582 100644
--- a/src/scripting.c
+++ b/src/scripting.c
@@ -17,6 +17,8 @@ void initScripting(SldjScripting* scripting)
void compileScript(SldjScripting* scripting, const char filePath[SLDJ_NAMEMAX])
{
+ scripting->lineScanner = NULL;
+
// Get file size.
struct stat fileState;
diff --git a/src/sldj.c b/src/sldj.c
index 2e40a00..349229b 100644
--- a/src/sldj.c
+++ b/src/sldj.c
@@ -58,7 +58,7 @@ void updateSldj(Sldj* sldj)
DrawTexturePro(
viewport,
(Rectangle){0.0, 0.0, viewport.width, viewport.height},
- (Rectangle){0.0, 0.0, viewport.width, viewport.height},
+ (Rectangle){0.0, 0.0, GetScreenWidth(), GetScreenHeight()},
(Vector2){0.0, 0.0},
0.0,
WHITE