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 Lines added Lines deleted
guts/Window.cpp 1 1
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 } }
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/libcursed

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/libcursed

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master