- split up st_start.cpp into one file with the Windows interface code and a second one which only contains platform independent code.
Since this made heavy use of Windows type, those were duplicated to avoid rewriting the entire interface. This split at least reduces the amount of code needed to refactor for making the screens work on other platforms than Windows.
This commit is contained in:
parent
5179a69fdb
commit
b0acfc3ce6
5 changed files with 1326 additions and 1191 deletions
|
|
@ -98,7 +98,6 @@
|
|||
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM);
|
||||
void CreateCrashLog (const char *custominfo, DWORD customsize, HWND richedit);
|
||||
void DisplayCrashLog ();
|
||||
extern uint8_t *ST_Util_BitsForBitmap (BITMAPINFO *bitmap_info);
|
||||
void I_FlushBufferedConsoleStuff();
|
||||
|
||||
// PUBLIC FUNCTION PROTOTYPES ----------------------------------------------
|
||||
|
|
@ -108,7 +107,6 @@ void I_FlushBufferedConsoleStuff();
|
|||
// EXTERNAL DATA DECLARATIONS ----------------------------------------------
|
||||
|
||||
extern EXCEPTION_POINTERS CrashPointers;
|
||||
extern BITMAPINFO *StartupBitmap;
|
||||
extern UINT TimerPeriod;
|
||||
|
||||
// PUBLIC DATA DEFINITIONS -------------------------------------------------
|
||||
|
|
@ -481,7 +479,7 @@ LRESULT CALLBACK LConProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||
// so flip it vertically while drawing it.
|
||||
StretchDIBits (drawitem->hDC, rect.left, rect.bottom - 1, rect.right - rect.left, rect.top - rect.bottom,
|
||||
0, 0, StartupBitmap->bmiHeader.biWidth, StartupBitmap->bmiHeader.biHeight,
|
||||
ST_Util_BitsForBitmap(StartupBitmap), StartupBitmap, DIB_RGB_COLORS, SRCCOPY);
|
||||
ST_Util_BitsForBitmap(StartupBitmap), reinterpret_cast<const BITMAPINFO*>(StartupBitmap), DIB_RGB_COLORS, SRCCOPY);
|
||||
|
||||
// If the title banner is gone, then this is an ENDOOM screen, so draw a short prompt
|
||||
// where the command prompt would have been in DOS.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue