foxygit / fake-08-xbox360 Log in
commit d7a76472f8a5fa22c0ceb770dfc8f446a5c3c47a
Author:     Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Sat Mar 6 18:48:01 2021 -0700
Commit:     Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Sat Mar 6 18:48:01 2021 -0700

    Reset clip when calling cls()
---
 source/graphics.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/source/graphics.cpp b/source/graphics.cpp
index 65fc47e..2b1a47a 100644
--- a/source/graphics.cpp
+++ b/source/graphics.cpp
@@ -438,6 +438,11 @@ void Graphics::cls(uint8_t color) {

 	_memory->drawState.text_x = 0;
 	_memory->drawState.text_y = 0;
+
+	_memory->drawState.clip_xb = 0;
+	_memory->drawState.clip_yb = 0;
+	_memory->drawState.clip_xe = 128;
+	_memory->drawState.clip_ye = 128;
 }

 void Graphics::pset(int x, int y){