Skip to content

Instantly share code, notes, and snippets.

@Nukotan
Created June 5, 2013 03:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nukotan/b3576c77a59524f43939 to your computer and use it in GitHub Desktop.
Save Nukotan/b3576c77a59524f43939 to your computer and use it in GitHub Desktop.
Fixed cast
gfx.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gfx.cpp b/gfx.cpp
index d3cfd81..e85954c 100644
--- a/gfx.cpp
+++ b/gfx.cpp
@@ -2431,7 +2431,7 @@ void S9xUpdateScreen (){
for (int y=endy-starty+1;y;y--)
__memcpy4a(
(long unsigned int*)(0x44000000+512*272*2*2+256*240*2+2*256*256*2+starty*256*2),
- (long unsigned int*)GPUPack.GFX.Screen+starty*GPUPack.GFX.Pitch2,
+ (long unsigned int*)(GPUPack.GFX.Screen+starty*GPUPack.GFX.Pitch2),
256*2/4);
}
// put back cache off and writeback Dcache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment