mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
gradient_sized (C++): fix parameter name
This commit is contained in:
parent
ae792bbd5c
commit
91f907a184
@ -131,9 +131,9 @@ namespace ncpp
|
|||||||
return ncplane_gradient (plane, egc, attrword, ul, ur, ll, lr, ystop, xstop) != -1;
|
return ncplane_gradient (plane, egc, attrword, ul, ur, ll, lr, ystop, xstop) != -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool gradient_sized (const char* egc, uint32_t attrword, uint64_t ul, uint64_t ur, uint64_t ll, uint64_t lr, int ylen, int xstop) const noexcept
|
bool gradient_sized (const char* egc, uint32_t attrword, uint64_t ul, uint64_t ur, uint64_t ll, uint64_t lr, int ylen, int xlen) const noexcept
|
||||||
{
|
{
|
||||||
return ncplane_gradient_sized (plane, egc, attrword, ul, ur, ll, lr, ylen, xstop) != -1;
|
return ncplane_gradient_sized (plane, egc, attrword, ul, ur, ll, lr, ylen, xlen) != -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool high_gradient (uint64_t ul, uint64_t ur, uint64_t ll, uint64_t lr, int ylen, int xlen) const noexcept
|
bool high_gradient (uint64_t ul, uint64_t ur, uint64_t ll, uint64_t lr, int ylen, int xlen) const noexcept
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
// background is drawn to the standard plane, at the bottom.
|
void DrawBackground(const std::string& s) { // drawn to the standard plane
|
||||||
void DrawBackground(const std::string& s) {
|
|
||||||
int averr;
|
int averr;
|
||||||
try{
|
try{
|
||||||
backg_ = std::make_unique<ncpp::Visual>(s.c_str(), &averr, 0, 0, ncpp::NCScale::Stretch);
|
backg_ = std::make_unique<ncpp::Visual>(s.c_str(), &averr, 0, 0, ncpp::NCScale::Stretch);
|
||||||
@ -15,8 +14,7 @@ void DrawBackground(const std::string& s) {
|
|||||||
backg_->get_plane()->greyscale();
|
backg_->get_plane()->greyscale();
|
||||||
}
|
}
|
||||||
|
|
||||||
// draw the background on the standard plane, then create a new plane for the play area.
|
void DrawBoard() { // draw all fixed components of the game
|
||||||
void DrawBoard() {
|
|
||||||
DrawBackground(BackgroundFile);
|
DrawBackground(BackgroundFile);
|
||||||
int y, x;
|
int y, x;
|
||||||
stdplane_->get_dim(&y, &x);
|
stdplane_->get_dim(&y, &x);
|
||||||
|
Loading…
Reference in New Issue
Block a user