1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00
serenity/Userland/Libraries/LibGfx
Sebastian Zaha d52a2ff10e LibGfx: Fix error & crash in Rect::closest_to
Assertion fails if the point is outside of the rect. This was introduced
in introduced in #18970 and causes serenity to crash when changing to 2x
resolution for a monitor, if the cursor after resizing is outside of
the new screen.

Added test to reproduce.
2023-07-01 23:27:00 +02:00
..
Filters LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
Font LibGfx/OpenType: Load x-height metrics from OS/2 table if available 2023-06-10 21:46:33 +02:00
ICC ICC: Strip trailing nul characters from MultiLocalizedUnicodeTagData 2023-06-26 19:24:34 +01:00
ImageFormats LibGfx/JPEG: Use a look-up table for cosine values 2023-06-25 00:22:21 +02:00
AffineTransform.cpp LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
AffineTransform.h LibGfx: Add AffineTransform::rotation() 2023-04-27 07:24:53 +02:00
AntiAliasingPainter.cpp LibWeb+LibGfx: Allow stroking with a paint style and opacity 2023-06-11 16:15:56 +02:00
AntiAliasingPainter.h LibWeb+LibGfx: Allow stroking with a paint style and opacity 2023-06-11 16:15:56 +02:00
Bitmap.cpp LibGfx: Add Bitmap::strip_alpha_channel() 2023-06-14 08:30:06 +02:00
Bitmap.h LibGfx: Add Bitmap::strip_alpha_channel() 2023-06-14 08:30:06 +02:00
BitmapMixer.cpp
BitmapMixer.h
CharacterBitmap.h
CIELAB.h LibGfx: Move CIELAB to its own file 2023-04-30 05:57:20 +02:00
ClassicStylePainter.cpp LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
ClassicStylePainter.h LibGfx+Userland: Merge FrameShape and FrameShadow into FrameStyle 2023-04-30 05:49:46 +02:00
ClassicWindowTheme.cpp LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
ClassicWindowTheme.h
CMakeLists.txt LibGfx/JPEG: Add a JPEG encoder :^) 2023-06-22 21:13:04 +02:00
Color.cpp LibGfx: Add Color::from_named_css_color_string 2023-05-28 13:24:37 +02:00
Color.h LibGfx: Remove SSE version of Color::blend() 2023-06-01 15:13:47 +02:00
CursorParams.cpp
CursorParams.h
DeltaE.cpp LibGfx: Add DeltaE() function 2023-04-30 05:57:20 +02:00
DeltaE.h LibGfx: Add DeltaE() function 2023-04-30 05:57:20 +02:00
DisjointRectSet.h
EdgeFlagPathRasterizer.cpp LibGfx: Avoid fill_path() crashes due to rounding errors 2023-06-13 06:09:28 +02:00
EdgeFlagPathRasterizer.h LibWeb+LibGfx: Allow filling with a paint style and opacity 2023-06-11 16:15:56 +02:00
Forward.h LibGfx: Add paint styles and allow gradients to be used as them 2023-01-22 18:15:52 +01:00
Gamma.h
GradientPainting.cpp Everywhere: Run spellcheck on all documentation 2023-05-07 01:05:09 +02:00
Gradients.h LibWeb+LibGfx: Migrate (most of) the CSS gradient painting to LibGfx 2023-01-10 10:25:58 +01:00
GrayscaleBitmap.h LibGfx: Add a simple GrayscaleBitmap class 2023-03-23 08:27:51 +00:00
Line.h LibGfx: Add small convenience functions for Lines and AA Painter 2023-01-26 10:37:26 +00:00
Matrix.h LibGfx: Fix -Wdouble-promotion for float matrices 2023-05-02 17:15:48 +01:00
Matrix3x3.h
Matrix4x4.h
Orientation.h
Painter.cpp LibGfx: Return early from Painter::draw_line() if clip rect is empty 2023-06-26 20:28:42 +02:00
Painter.h LibWeb+LibGfx: Allow filling with a paint style and opacity 2023-06-11 16:15:56 +02:00
PaintStyle.h LibGfx: Make PaintStyle::paint() a public function 2023-06-01 06:25:00 +02:00
Palette.cpp LibGfx: Make the Palette constructor take NNRP<PaletteImpl> 2023-03-15 23:29:00 +01:00
Palette.h LibGfx: Make the Palette constructor take NNRP<PaletteImpl> 2023-03-15 23:29:00 +01:00
Path.cpp LibGfx: Ensure last subpath is closed by Path::close_all_subpaths() 2023-06-24 19:31:30 +02:00
Path.h LibGfx: Invalidate path bounding boxes when invalidating split lines 2023-06-17 06:38:32 +02:00
Point.cpp LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
Point.h LibGfx: Add Point::to_floored<T>() 2023-04-09 18:42:45 +02:00
Quad.h
Rect.cpp LibIPC+Everywhere: Change IPC::encode's return type to ErrorOr 2023-01-04 11:49:15 +01:00
Rect.h LibGfx: Fix error & crash in Rect::closest_to 2023-07-01 23:27:00 +02:00
ShareableBitmap.cpp LibGfx: Remove try_ prefix from bitmap creation functions 2023-01-26 20:24:37 +00:00
ShareableBitmap.h LibIPC+Everywhere: Change IPC::encode's return type to ErrorOr 2023-01-04 11:49:15 +01:00
Size.cpp LibIPC+Everywhere: Change IPC::encode's return type to ErrorOr 2023-01-04 11:49:15 +01:00
Size.h LibIPC+Everywhere: Change IPC::encode's return type to ErrorOr 2023-01-04 11:49:15 +01:00
StandardCursor.h
StylePainter.cpp LibGfx+Userland: Merge FrameShape and FrameShadow into FrameStyle 2023-04-30 05:49:46 +02:00
StylePainter.h LibGfx+Userland: Merge FrameShape and FrameShadow into FrameStyle 2023-04-30 05:49:46 +02:00
SystemTheme.cpp Everywhere: Support overriding the system color scheme 2023-03-10 22:03:49 +01:00
SystemTheme.h LibGfx: Return StringView for SystemTheme Roles 2023-04-30 05:48:14 +02:00
TextAlignment.h
TextAttributes.h LibGfx+Userland: Make TextAttributes::underline_style optional 2023-03-15 14:55:49 +01:00
TextDirection.cpp
TextDirection.h
TextElision.h
TextLayout.cpp LibGfx: Consider multi-code point glyphs when computing text width 2023-02-22 10:14:36 +01:00
TextLayout.h LibGfx: Make text painting better at aligning vector fonts vertically 2023-01-06 12:02:21 +01:00
TextWrapping.h
Triangle.cpp
Triangle.h
Vector2.h
Vector3.h
Vector4.h
VectorN.h LibGfx: Remove unnecessary AK:: prefix in VectorN.h 2023-03-06 13:05:43 +00:00
WindowTheme.cpp
WindowTheme.h