Win32GUI: Gather raw_print text and display it all in single dialog
Defined strbuf_t and related routines to support dynamically sized strings. Modified strip_newline() to strip the last newline in a string instead of the first. Simplified splash window code using new strbuf_t. Prior to exiting game, re-enable getreturn and call wait_synch() in case there is buffered raw prints that must be displayed to user.
This commit is contained in:
committed by
Pasi Kallinen
parent
b02dae91a1
commit
a588541a27
@@ -139,6 +139,15 @@ char *argv[];
|
||||
/* use STDERR by default
|
||||
_CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDERR);
|
||||
_CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);*/
|
||||
/* Heap Debugging
|
||||
_CrtSetDbgFlag( _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG)
|
||||
| _CRTDBG_ALLOC_MEM_DF
|
||||
| _CRTDBG_CHECK_ALWAYS_DF
|
||||
| _CRTDBG_CHECK_CRT_DF
|
||||
| _CRTDBG_DELAY_FREE_MEM_DF
|
||||
| _CRTDBG_LEAK_CHECK_DF);
|
||||
_CrtSetBreakAlloc(1423);
|
||||
*/
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
@@ -546,6 +546,8 @@ msexit()
|
||||
getreturn("to end");
|
||||
synch_cursor();
|
||||
#endif
|
||||
getreturn_enabled = TRUE;
|
||||
wait_synch();
|
||||
return;
|
||||
}
|
||||
#endif /* MICRO || WIN32 || OS2 */
|
||||
|
||||
Reference in New Issue
Block a user