Warning() => GFX2_Log(GFX2_WARNING)

This commit is contained in:
Thomas Bernard
2020-04-13 00:43:47 +02:00
parent 7f08ad5bb9
commit 2c9b79a6af
10 changed files with 23 additions and 40 deletions

View File

@@ -427,7 +427,7 @@ int Init_Win32(HINSTANCE hInstance, HINSTANCE hPrevInstance)
wc.lpszMenuName = NULL;
wc.lpszClassName = TEXT("grafx2");
if (!RegisterClass(&wc)) {
Warning("RegisterClass failed\n");
GFX2_Log(GFX2_WARNING, "RegisterClass failed\n");
Error(ERROR_INIT);
return 0;
}
@@ -457,7 +457,7 @@ static int Video_AllocateDib(int width, int height)
dc = GetDC(NULL);
Windows_DIB = CreateDIBSection(dc, bi, DIB_RGB_COLORS, &Windows_Screen, NULL, 0);
if (Windows_DIB == NULL) {
Warning("CreateDIBSection failed");
GFX2_Log(GFX2_WARNING, "CreateDIBSection failed\n");
return -1;
}
ReleaseDC(NULL, dc);