ref: acf1f779d12fa2e7ac87a77f063cc8b084d5b7ee
parent: e555eb452f9bbac714d81341f5b4794d7ac17d3a
author: Simon Howard <[email protected]>
date: Wed Sep 24 16:15:25 EDT 2008
Add I_EnableLoadingDisk function to enable Doom's "loading disk" - it is not present in Heretic. Subversion-branch: /branches/raven-branch Subversion-revision: 1279
--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -412,7 +412,8 @@
TryRunTics();
- I_InitGraphics ();
+ I_InitGraphics();
+ I_EnableLoadingDisk();
I_SetGrabMouseCallback(D_GrabMouseCallback);
I_SetWindowTitle(gamedescription);
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -273,7 +273,7 @@
screenvisible = (state & SDL_APPACTIVE) != 0;
}
-static void LoadDiskImage(void)
+void I_EnableLoadingDisk(void)
{
patch_t *disk;
char *disk_name;
@@ -1618,10 +1618,6 @@
}
V_RestoreBuffer();
-
- // "Loading from disk" icon
-
- LoadDiskImage();
// Clear the screen to black.
--- a/src/i_video.h
+++ b/src/i_video.h
@@ -112,6 +112,10 @@
void I_StartTic (void);
+// Enable the loading disk image displayed when reading from disk.
+
+void I_EnableLoadingDisk(void);
+
extern char *video_driver;
extern boolean screenvisible;
extern float mouse_acceleration;