diff --git a/src/display.cpp b/src/display.cpp index c40df322598..38109910cf1 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -51,6 +51,7 @@ #define ERR_DP LOG_STREAM(err, display) #define INFO_DP LOG_STREAM(info, display) +#define DBG_DP LOG_STREAM(debug, display) namespace { #ifdef USE_TINY_GUI @@ -1052,7 +1053,7 @@ bool display::draw_init() } if(invalidateAll_) { - INFO_DP << "draw() with invalidateAll\n"; + DBG_DP << "draw() with invalidateAll\n"; gamemap::location topleft; gamemap::location bottomright; get_visible_hex_bounds(topleft, bottomright); @@ -1615,7 +1616,7 @@ void display::bounds_check_position(int& xpos, int& ypos) void display::invalidate_all() { - INFO_DP << "invalidate_all()\n"; + DBG_DP << "invalidate_all()\n"; invalidateAll_ = true; invalidated_.clear(); update_rect(map_area()); diff --git a/src/font.cpp b/src/font.cpp index e502088ff27..2f7cd94bf89 100644 --- a/src/font.cpp +++ b/src/font.cpp @@ -40,6 +40,7 @@ #include #include +#define DBG_FT LOG_STREAM(debug, display) #define LOG_FT LOG_STREAM(info, display) #define WRN_FT LOG_STREAM(warn, display) #define ERR_FT LOG_STREAM(err, display) @@ -536,7 +537,7 @@ unsigned int text_cache::max_size_ = 50; void text_cache::resize(unsigned int size) { - LOG_FT << "Text cache: resize from: " << max_size_ << " to: " + DBG_FT << "Text cache: resize from: " << max_size_ << " to: " << size << " items in cache: " << cache_.size() << '\n'; while(size < cache_.size()) { @@ -560,7 +561,7 @@ text_surface &text_cache::find(text_surface const &t) cache_.push_front(t); } if (++lookup_ % 1000 == 0) { - LOG_FT << "Text cache: " << lookup_ << " lookups, " << (hit_ / 10) << "% hits\n"; + DBG_FT << "Text cache: " << lookup_ << " lookups, " << (hit_ / 10) << "% hits\n"; hit_ = 0; } return cache_.front();