mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Use the info we got from callback for the res in createsurface
svn path=/trunk/; revision=18913
This commit is contained in:
parent
5fad003df8
commit
8e04cb351f
1 changed files with 7 additions and 4 deletions
|
@ -41,9 +41,12 @@ HRESULT WINAPI Main_DDrawSurface_Initialize (LPDIRECTDRAWSURFACE7 iface, LPDIREC
|
||||||
/* surface global struct */
|
/* surface global struct */
|
||||||
memset(&This->Global, 0, sizeof(DDRAWI_DDRAWSURFACE_GBL));
|
memset(&This->Global, 0, sizeof(DDRAWI_DDRAWSURFACE_GBL));
|
||||||
This->Global.lpDD = &This->owner->DirectDrawGlobal;
|
This->Global.lpDD = &This->owner->DirectDrawGlobal;
|
||||||
This->Global.wHeight = This->owner->Height;
|
This->Global.wHeight = This->owner->DirectDrawGlobal.vmiData.dwDisplayHeight;
|
||||||
This->Global.wWidth = This->owner->Width;
|
This->Global.wWidth = This->owner->DirectDrawGlobal.vmiData.dwDisplayWidth;
|
||||||
This->Global.dwLinearSize = This->Global.wWidth * This->owner->Bpp/8;
|
This->Global.dwLinearSize = This->owner->DirectDrawGlobal.vmiData.lDisplayPitch;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* surface more struct */
|
/* surface more struct */
|
||||||
memset(&This->More, 0, sizeof(DDRAWI_DDRAWSURFACE_MORE));
|
memset(&This->More, 0, sizeof(DDRAWI_DDRAWSURFACE_MORE));
|
||||||
|
|
Loading…
Reference in a new issue