Changed all the renderers' init functions to correctly call cgapal_rebuild() instead of manually rebuilding the CGA palette array.

This commit is contained in:
OBattler
2017-12-12 19:18:12 +01:00
parent 83f7d458db
commit 0d7ece0daf
3 changed files with 8 additions and 7 deletions

View File

@@ -389,6 +389,8 @@ ddraw_take_screenshot(wchar_t *fn)
int
ddraw_init(HWND h)
{
cgapal_rebuild();
if (FAILED(DirectDrawCreate(NULL, &lpdd, NULL))) return(0);
if (FAILED(lpdd->QueryInterface(IID_IDirectDraw7, (LPVOID *)&lpdd7)))