mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-17 08:28:09 +08:00
Performance improvement by refactoring pixel styles (#704)
Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
This commit is contained in:
@@ -91,7 +91,7 @@ Canvas::Canvas(int width, int height)
|
||||
/// @param y the y coordinate of the cell.
|
||||
Pixel Canvas::GetPixel(int x, int y) const {
|
||||
auto it = storage_.find(XY{x, y});
|
||||
return (it == storage_.end()) ? Pixel{} : it->second.content;
|
||||
return (it == storage_.end()) ? Pixel() : it->second.content;
|
||||
}
|
||||
|
||||
/// @brief Draw a braille dot.
|
||||
|
Reference in New Issue
Block a user