diff options
author | Karl Kurbjun <kkurbjun@gmail.com> | 2006-04-02 20:45:24 +0000 |
---|---|---|
committer | Karl Kurbjun <kkurbjun@gmail.com> | 2006-04-02 20:45:24 +0000 |
commit | 546d96c46fb5b6fc8b2185d73b40fc958ee43709 (patch) | |
tree | 0401e6fbc02105c6d1c98533cccc669370813b28 /apps/plugins/doom | |
parent | 93b6a1d12c31a601df6b548bda81e3c40f431c47 (diff) | |
download | rockbox-546d96c46fb5b6fc8b2185d73b40fc958ee43709.tar.gz rockbox-546d96c46fb5b6fc8b2185d73b40fc958ee43709.zip |
Properly ifdef H300 video code, fix commented line handling rockbox volume
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9439 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/doom')
-rw-r--r-- | apps/plugins/doom/i_video.c | 12 | ||||
-rw-r--r-- | apps/plugins/doom/rockdoom.c | 2 |
2 files changed, 9 insertions, 5 deletions
diff --git a/apps/plugins/doom/i_video.c b/apps/plugins/doom/i_video.c index b7dbd2bcf5..6adb9491a4 100644 --- a/apps/plugins/doom/i_video.c +++ b/apps/plugins/doom/i_video.c | |||
@@ -16,7 +16,10 @@ | |||
16 | * GNU General Public License for more details. | 16 | * GNU General Public License for more details. |
17 | * | 17 | * |
18 | * $Log$ | 18 | * $Log$ |
19 | * Revision 1.3 2006/04/02 01:52:44 kkurbjun | 19 | * Revision 1.4 2006/04/02 20:45:24 kkurbjun |
20 | * Properly ifdef H300 video code, fix commented line handling rockbox volume | ||
21 | * | ||
22 | * Revision 1.3 2006-04-02 01:52:44 kkurbjun | ||
20 | * Update adds prboom's high resolution support, also makes the scaling for platforms w/ resolution less then 320x200 much nicer. IDoom's lookup table code has been removed. Also fixed a pallete bug. Some graphic errors are present in menu and status bar. Also updates some headers and output formatting. | 23 | * Update adds prboom's high resolution support, also makes the scaling for platforms w/ resolution less then 320x200 much nicer. IDoom's lookup table code has been removed. Also fixed a pallete bug. Some graphic errors are present in menu and status bar. Also updates some headers and output formatting. |
21 | * | 24 | * |
22 | * Revision 1.2 2006-03-28 17:20:49 christian | 25 | * Revision 1.2 2006-03-28 17:20:49 christian |
@@ -322,9 +325,10 @@ void I_UpdateNoBlit (void) | |||
322 | 325 | ||
323 | void I_FinishUpdate (void) | 326 | void I_FinishUpdate (void) |
324 | { | 327 | { |
325 | #if defined(CPU_COLDFIRE) && !defined(SIMULATOR) | 328 | #if defined(IRIVER_H300_SERIES) && !defined(SIMULATOR) |
326 | /* | 329 | /* |
327 | Lookup tables are no longer needed | 330 | Lookup tables are no longer needed (H300 specific, decreases timedemo |
331 | by about 500 tics) | ||
328 | */ | 332 | */ |
329 | 333 | ||
330 | // Start the write | 334 | // Start the write |
@@ -391,7 +395,7 @@ void I_InitGraphics(void) | |||
391 | 395 | ||
392 | printf("Starting Graphics engine\n"); | 396 | printf("Starting Graphics engine\n"); |
393 | 397 | ||
394 | /* Note: The other screens are initialized later */ | 398 | /* Note: The other screens are allocated as needed */ |
395 | 399 | ||
396 | #if defined(CPU_COLDFIRE) && !defined(SIMULATOR) | 400 | #if defined(CPU_COLDFIRE) && !defined(SIMULATOR) |
397 | coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE); | 401 | coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE); |
diff --git a/apps/plugins/doom/rockdoom.c b/apps/plugins/doom/rockdoom.c index ae5ea39a66..1810acdff5 100644 --- a/apps/plugins/doom/rockdoom.c +++ b/apps/plugins/doom/rockdoom.c | |||
@@ -666,7 +666,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
666 | 666 | ||
667 | rb->lcd_clear_display(); | 667 | rb->lcd_clear_display(); |
668 | 668 | ||
669 | // systemvol= rb->global_settings->volume-rb->global_settings->volume%((rb->sound_max(SOUND_VOLUME)-rb->sound_min(SOUND_VOLUME))/15); | 669 | systemvol= rb->global_settings->volume-rb->global_settings->volume%((rb->sound_max(SOUND_VOLUME)-rb->sound_min(SOUND_VOLUME))/15); |
670 | general_translucency = default_translucency; // phares | 670 | general_translucency = default_translucency; // phares |
671 | D_DoomMain (); | 671 | D_DoomMain (); |
672 | 672 | ||