diff options
-rw-r--r-- | crawl-ref/source/acr.cc | 4 | ||||
-rw-r--r-- | crawl-ref/source/beam.cc | 4 | ||||
-rw-r--r-- | crawl-ref/source/output.cc | 2 | ||||
-rw-r--r-- | crawl-ref/source/view.cc | 6 |
4 files changed, 3 insertions, 13 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index 9431fe3675..c6f72ef6dd 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -2201,11 +2201,7 @@ static void prep_input() { you.time_taken = player_speed(); you.shield_blocks = 0; // no blocks this round -#ifdef UNIX update_screen(); -#else - window( 1, 1, 80, get_number_of_lines() ); -#endif textcolor(LIGHTGREY); diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index 1fa6119937..9c54dc65e5 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -1461,10 +1461,8 @@ void fire_beam( bolt &pbolt, item_def *item ) gotoxy(drawx, drawy); putch(pbolt.type); -#ifdef UNIX // get curses to update the screen so we can see the beam update_screen(); -#endif delay(15); @@ -4577,12 +4575,10 @@ void explosion( bolt &beam, bool hole_in_the_middle, } // new-- delay after every 'ring' {gdl} -#ifdef UNIX // If we don't refresh curses we won't // guarantee that the explosion is visible if (drawing) update_screen(); -#endif // only delay on real explosion if (!beam.is_tracer && drawing) delay(50); diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index dfda9e4110..465640177a 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -618,10 +618,8 @@ void print_stats(void) cprintf( "Position (%2d,%2d)", you.x_pos, you.y_pos ); #endif -#ifdef UNIX // get curses to redraw screen update_screen(); -#endif } // end print_stats() const char* itosym1(int stat) diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index 0f20834b19..41b0263754 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -2756,7 +2756,7 @@ static void draw_level_map(int start_x, int start_y, bool travel_mode) #ifdef USE_CURSES ch = cset_adjust( ch ); #endif - textcolor( buffer2[bufcount2 - 1] ); + textattr( buffer2[bufcount2 - 1] ); putwch(ch); } } @@ -4238,7 +4238,7 @@ void view_update_at(const coord_def &pos) flash_colour = viewmap_flash_colour(); gotoxy(vp.x, vp.y); - textcolor(flash_colour? real_colour(flash_colour) : colour); + textattr(flash_colour? real_colour(flash_colour) : colour); putwch(ch); } @@ -4473,7 +4473,7 @@ void viewwindow(bool draw_it, bool do_updates) #ifdef USE_CURSES buffy[bufcount] = cset_adjust( buffy[bufcount] ); #endif - textcolor( buffy[bufcount + 1] ); + textattr( buffy[bufcount + 1] ); putwch( buffy[bufcount] ); bufcount += 2; } |