mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibGfx: Rename Rect,Point,Size => IntRect,IntPoint,IntSize
This fits nicer with FloatRect,FloatPoint,FloatSize and gives a much better visual clue about what type of metric is being used.
This commit is contained in:
parent
656b01eb0f
commit
116cf92156
Notes:
sideshowbarker
2024-07-19 05:43:51 +09:00
Author: https://github.com/awesomekling
Commit: 116cf92156
212 changed files with 1144 additions and 1144 deletions
|
@ -71,12 +71,12 @@ void WaveWidget::paint_event(GUI::PaintEvent& event)
|
|||
int y_left = sample_to_y(buffer[x].left);
|
||||
int y_right = sample_to_y(buffer[x].right);
|
||||
|
||||
Gfx::Point point1_left(prev_x * width_scale, prev_y_left);
|
||||
Gfx::Point point2_left(x * width_scale, y_left);
|
||||
Gfx::IntPoint point1_left(prev_x * width_scale, prev_y_left);
|
||||
Gfx::IntPoint point2_left(x * width_scale, y_left);
|
||||
painter.draw_line(point1_left, point2_left, left_wave_color);
|
||||
|
||||
Gfx::Point point1_right(prev_x * width_scale, prev_y_right);
|
||||
Gfx::Point point2_right(x * width_scale, y_right);
|
||||
Gfx::IntPoint point1_right(prev_x * width_scale, prev_y_right);
|
||||
Gfx::IntPoint point2_right(x * width_scale, y_right);
|
||||
painter.draw_line(point1_right, point2_right, right_wave_color);
|
||||
|
||||
prev_x = x;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue