Remove C compat
It's unmaintained and clear that we won't be going back since some functions can only be solved with C++
This commit is contained in:
parent
187a021b30
commit
660405505f
9 changed files with 0 additions and 242 deletions
|
|
@ -141,11 +141,7 @@ static void RedPalette(PALETTEENTRY *pal)
|
|||
red[i].peFlags = 0;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
lpDDPalette->SetEntries(0, 0, 256, red);
|
||||
#else
|
||||
lpDDPalette->lpVtbl->SetEntries(lpDDPalette, 0, 0, 256, red);
|
||||
#endif
|
||||
}
|
||||
|
||||
void CaptureScreen()
|
||||
|
|
@ -158,11 +154,7 @@ void CaptureScreen()
|
|||
hObject = CaptureFile(FileName);
|
||||
if (hObject != INVALID_HANDLE_VALUE) {
|
||||
DrawAndBlit();
|
||||
#ifdef __cplusplus
|
||||
lpDDPalette->GetEntries(0, 0, 256, palette);
|
||||
#else
|
||||
lpDDPalette->lpVtbl->GetEntries(lpDDPalette, 0, 0, 256, palette);
|
||||
#endif
|
||||
RedPalette(palette);
|
||||
|
||||
lock_buf(2);
|
||||
|
|
@ -180,10 +172,6 @@ void CaptureScreen()
|
|||
DeleteFile(FileName);
|
||||
|
||||
Sleep(300);
|
||||
#ifdef __cplusplus
|
||||
lpDDPalette->SetEntries(0, 0, 256, palette);
|
||||
#else
|
||||
lpDDPalette->lpVtbl->SetEntries(lpDDPalette, 0, 0, 256, palette);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue