Fixed log message

This commit is contained in:
Bob Polis 2022-09-24 11:07:47 +02:00
parent a4cd8232f1
commit 99c7963260

View File

@ -70,7 +70,7 @@ void draw() {
bool handle_window_resize(const SDL_Event& event, bool quit) { bool handle_window_resize(const SDL_Event& event, bool quit) {
if (event.window.data1 != main_image->width() || event.window.data2 != main_image->height()) { if (event.window.data1 != main_image->width() || event.window.data2 != main_image->height()) {
std::cerr << "window resized to " << event.window.data1 << "×" << event.window.data2 << " pixels\n"; std::cerr << "screensaver: window resized to " << event.window.data1 << "×" << event.window.data2 << " pixels\n";
create_image(event.window.data1, event.window.data2); create_image(event.window.data1, event.window.data2);
cairo_rectangle_t r {0, 0, static_cast<double>(event.window.data1), static_cast<double>(event.window.data2)}; cairo_rectangle_t r {0, 0, static_cast<double>(event.window.data1), static_cast<double>(event.window.data2)};
if (main_saver) { if (main_saver) {