mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-17 08:50:29 +02:00
64bit version now works. Temp hack in for WSA x64 crash.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user