Commit dbbc9a984d4d036a43387c3d2ddf6938481952fa
Create 1x1 windows by default
Passing in 4 zeroes results in windows that fill the whole screen. This
causes problems later with redrawing on resize when they are refreshed
and end up prevending normal redraw.
Author: xaizek
Author date (UTC): 2022-06-19 07:30
Committer name: xaizek
Committer date (UTC): 2022-06-19 07:32
Parent(s): 1609be549aca6c7895ad46a1b2987bb3568842f4
Signing key: 99DC5E4DB05F6BE2
Tree: 9e37b9821541e92cdcc2bf66457a4b0f3de73c1a
File guts/Window.cpp changed (mode: 100644) (index 42998a5..7e9880c) |
... |
... |
w(void *ptr) |
78 |
78 |
|
|
79 |
79 |
Window::Window() : hidden(false) |
Window::Window() : hidden(false) |
80 |
80 |
{ |
{ |
81 |
|
ptr = newwin(0, 0, 0, 0); |
|
|
81 |
|
ptr = newwin(1, 1, 0, 0); |
82 |
82 |
if (ptr == nullptr) { |
if (ptr == nullptr) { |
83 |
83 |
throw std::runtime_error("Failed to create curses window"); |
throw std::runtime_error("Failed to create curses window"); |
84 |
84 |
} |
} |