1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 17:27:34 +00:00

PixelPaint: Repaint histogram data when the widget gets resized

This patch enables the histogram to redraw itself when it gets resized
without calculating the data again through the image.
This commit is contained in:
Torstennator 2023-10-08 09:12:04 +02:00 committed by Andrew Kaster
parent c85c61571c
commit b61e4e7cd9
2 changed files with 24 additions and 29 deletions

View file

@ -32,6 +32,8 @@ private:
Vector<int> green;
Vector<int> blue;
Vector<int> brightness;
int max_brightness_frequency;
int max_color_frequency;
};
HistogramData m_data;
};