diff options
author | Simon Howard | 2008-09-24 20:15:25 +0000 |
---|---|---|
committer | Simon Howard | 2008-09-24 20:15:25 +0000 |
commit | acf1f779d12fa2e7ac87a77f063cc8b084d5b7ee (patch) | |
tree | 9a52de26a1323c9fafb00f26c3989427e8afc8a1 /src | |
parent | e555eb452f9bbac714d81341f5b4794d7ac17d3a (diff) | |
download | chocolate-doom-acf1f779d12fa2e7ac87a77f063cc8b084d5b7ee.tar.gz chocolate-doom-acf1f779d12fa2e7ac87a77f063cc8b084d5b7ee.tar.bz2 chocolate-doom-acf1f779d12fa2e7ac87a77f063cc8b084d5b7ee.zip |
Add I_EnableLoadingDisk function to enable Doom's "loading disk" - it is
not present in Heretic.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1279
Diffstat (limited to 'src')
-rw-r--r-- | src/doom/d_main.c | 3 | ||||
-rw-r--r-- | src/i_video.c | 6 | ||||
-rw-r--r-- | src/i_video.h | 4 |
3 files changed, 7 insertions, 6 deletions
diff --git a/src/doom/d_main.c b/src/doom/d_main.c index 3188ece3..408d968a 100644 --- a/src/doom/d_main.c +++ b/src/doom/d_main.c @@ -412,7 +412,8 @@ void D_DoomLoop (void) TryRunTics(); - I_InitGraphics (); + I_InitGraphics(); + I_EnableLoadingDisk(); I_SetGrabMouseCallback(D_GrabMouseCallback); I_SetWindowTitle(gamedescription); diff --git a/src/i_video.c b/src/i_video.c index 30938eb9..bcfbf270 100644 --- a/src/i_video.c +++ b/src/i_video.c @@ -273,7 +273,7 @@ static void UpdateFocus(void) screenvisible = (state & SDL_APPACTIVE) != 0; } -static void LoadDiskImage(void) +void I_EnableLoadingDisk(void) { patch_t *disk; char *disk_name; @@ -1619,10 +1619,6 @@ void I_InitGraphics(void) V_RestoreBuffer(); - // "Loading from disk" icon - - LoadDiskImage(); - // Clear the screen to black. memset(I_VideoBuffer, 0, SCREENWIDTH * SCREENHEIGHT); diff --git a/src/i_video.h b/src/i_video.h index 07c2842b..5af31e92 100644 --- a/src/i_video.h +++ b/src/i_video.h @@ -112,6 +112,10 @@ void I_StartFrame (void); 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; |