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:
parent
c85c61571c
commit
b61e4e7cd9
2 changed files with 24 additions and 29 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue