1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00

Fixed GDI resource handle initialization

This commit is contained in:
narzoul 2018-03-17 13:11:45 +01:00
parent 335d093cb9
commit 5770c990ed

View File

@ -73,7 +73,6 @@ namespace DDraw
std::unique_ptr<Surface> privateData(new PrimarySurface(Surface::getSurface(*surface)));
attach(*surface7, privateData);
g_gdiResourceHandle = getResourceHandle(*surface7);
g_primarySurface = surface7;
g_origCaps = origCaps;
@ -86,6 +85,7 @@ namespace DDraw
resizeBuffers(*surface7);
}
g_gdiResourceHandle = getResourceHandle(*surface7);
return DD_OK;
}