optimization
This commit is contained in:
parent
9bb36c990d
commit
285e8c9182
4 changed files with 57 additions and 69 deletions
|
|
@ -39,6 +39,13 @@ namespace Crafter {
|
|||
std::int_fast32_t width;
|
||||
std::int_fast32_t height;
|
||||
};
|
||||
|
||||
export struct ClipRect {
|
||||
std::int_fast32_t left;
|
||||
std::int_fast32_t right;
|
||||
std::int_fast32_t top;
|
||||
std::int_fast32_t bottom;
|
||||
};
|
||||
|
||||
export struct __attribute__((packed)) Pixel_BU8_GU8_RU8_AU8 {
|
||||
std::uint8_t b;
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ export namespace Crafter {
|
|||
bool open = true;
|
||||
bool updating = false;
|
||||
|
||||
std::vector<ScaleData> dirtyRects;
|
||||
std::vector<ClipRect> dirtyRects;
|
||||
void AddDirtyRect(ScaleData rect);
|
||||
|
||||
Window() = default;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue