64bit version now works. Temp hack in for WSA x64 crash.

This commit is contained in:
Justin Marshall
2020-06-22 13:22:35 -07:00
parent e3c998fb16
commit 9edbf56043
22 changed files with 33 additions and 29 deletions
+2 -2
View File
@@ -284,7 +284,7 @@ void GraphicBufferClass::Init(int w, int h, void *buffer, long size, GBC_Enum fl
Buffer = new BYTE[Size]; // otherwise allocate it and
Allocated = TRUE; // mark it system alloced
}
Offset = (long)Buffer; // Get offset to the buffer
Offset = (INT_PTR)Buffer; // Get offset to the buffer
IsDirectDraw = FALSE;
}
@@ -502,7 +502,7 @@ BOOL GraphicBufferClass::Lock(void)
return(TRUE);
}
Offset = (unsigned long)backbuffer_data_raw; // 32bit to 64bit issue here.
Offset = (INT_PTR)backbuffer_data_raw;
//Pitch = Width;
LockCount++; // increment count so we can track if