#include <iostream>
#include <SDL_timer.h>
+#include <SDL_keyboard.h>
#include "console.hpp"
#include "video/drawing_context.hpp"
#include "video/surface.hpp"
// wrap long lines
std::string overflow;
+ unsigned int line_count = 0;
do {
lines.push_front(Font::wrap_to_chars(s, 99, &overflow));
+ line_count++;
s = overflow;
} while (s.length() > 0);
if (height < 64) {
if(height < 4)
height = 4;
- height += fontheight;
+ height += fontheight * line_count;
}
// reset console to full opacity