ladybird/Userland/Applications
Jelle Raaijmakers 3c02e3ba09 Maps: Pad grid size to prevent missing tiles
Previously, we would divide the widget width and height by the tile size
and round up, which did not result in enough tiles to cover the entire
widget. Although this calculation is correct if you starting drawing
tiles in the top left corner, we have an additional offset to account
for.

Now, we take the number of tiles that fit in the widget completely and
pad it with 2 tiles to account for the partial left/right and top/bottom
sides. An additional tile is added to account for the iterator
translating by width / 2, which rounds down again.

The resulting tile rects are always intersected with the widget
dimensions, so even if we're generating more tile coordinates than
strictly necessary, we're not performing the actual download or draw
operations.
2023-10-03 20:25:09 +02:00
..
3DFileViewer Userland: Compare event MIME type list with a StringView 2023-09-29 14:40:21 +01:00
About About: Display Application's Icon in File Manager 2023-09-02 16:27:08 +01:00
AnalogClock Userland: Make Window::set_main_widget() non-fallible 2023-09-21 10:20:23 +02:00
Assistant Assistant: Avoid an unnecessary copy of the results list 2023-10-01 14:34:28 +02:00
Browser Browser: Add support for color pickers 2023-09-27 12:16:41 +01:00
BrowserSettings Userland: Prefer non-fallible construction for LibGUI objects 2023-09-18 18:00:45 +02:00
Calculator Userland: Make Window::set_main_widget() non-fallible 2023-09-21 10:20:23 +02:00
Calendar Userland: Remember window state of productivity / editor applications 2023-09-24 20:00:00 -06:00
CalendarSettings Userland: Prefer non-fallible construction for LibGUI objects 2023-09-18 18:00:45 +02:00
CertificateSettings Meta: Rename compile_gml to stringify_gml 2023-08-11 21:33:48 +02:00
CharacterMap Userland: Make Window::set_main_widget() non-fallible 2023-09-21 10:20:23 +02:00
ClockSettings LibLocale+LibJS+ClockSettings: Make date time format APIs infallible 2023-08-23 05:29:21 +02:00
CrashReporter Userland: Use non-fallible EventReceiver::add() where possible 2023-09-25 10:58:31 +02:00
Debugger Debugger: Support attaching to a running process 2023-02-08 19:23:07 +01:00
DisplaySettings Userland: Don't use String::from_utf8() for literal strings 2023-09-15 08:44:52 +02:00
Escalator Userland: Make Window::set_main_widget() non-fallible 2023-09-21 10:20:23 +02:00
FileManager LibCore: Make MappedFile OwnPtr-based 2023-09-27 03:22:56 +02:00
FontEditor Userland: Compare event MIME type list with a StringView 2023-09-29 14:40:21 +01:00
GamesSettings Chess: Capitalize chess set names + Rename 'stelar7' to 'Classic' 2023-08-29 10:28:24 +02:00
Help LibCore: Make MappedFile OwnPtr-based 2023-09-27 03:22:56 +02:00
HexEditor Userland: Compare event MIME type list with a StringView 2023-09-29 14:40:21 +01:00
ImageViewer Userland: Return empty if ImageDecoder client receives an invalid frame 2023-10-03 08:33:53 +02:00
KeyboardMapper Userland: Remember window state of productivity / editor applications 2023-09-24 20:00:00 -06:00
KeyboardSettings Userland: Make Window::set_main_widget() non-fallible 2023-09-21 10:20:23 +02:00
Magnifier Userland: Make Window::set_main_widget() non-fallible 2023-09-21 10:20:23 +02:00
Mail Userland: Remember window state of productivity / editor applications 2023-09-24 20:00:00 -06:00
MailSettings Userland: Prefer non-fallible construction for LibGUI objects 2023-09-18 18:00:45 +02:00
Maps Maps: Pad grid size to prevent missing tiles 2023-10-03 20:25:09 +02:00
MapsSettings Maps: Add MapsSettings with multiple tile providers options 2023-09-18 12:46:41 -06:00
MouseSettings Meta: Rename compile_gml to stringify_gml 2023-08-11 21:33:48 +02:00
NetworkSettings Userland: Prefer non-fallible construction for LibGUI objects 2023-09-18 18:00:45 +02:00
PartitionEditor Userland: Make Window::set_main_widget() non-fallible 2023-09-21 10:20:23 +02:00
PDFViewer Userland: Make Window::set_main_widget() non-fallible 2023-09-21 10:20:23 +02:00
Piano Userland: Use non-fallible EventReceiver::add() where possible 2023-09-25 10:58:31 +02:00
PixelPaint Userland: Return empty if ImageDecoder client receives an invalid frame 2023-10-03 08:33:53 +02:00
Presenter Userland: Compare event MIME type list with a StringView 2023-09-29 14:40:21 +01:00
Run Userland: Make Window::set_main_widget() non-fallible 2023-09-21 10:20:23 +02:00
Settings Userland: Use non-fallible EventReceiver::add() where possible 2023-09-25 10:58:31 +02:00
SoundPlayer Userland: Compare event MIME type list with a StringView 2023-09-29 14:40:21 +01:00
SpaceAnalyzer SpaceAnalyzer: Port to GML compiler 2023-10-02 21:28:40 +02:00
Spreadsheet Userland: Store MIME keys as String in Core::MimeData 2023-09-29 14:40:21 +01:00
SystemMonitor Userland: Use non-fallible EventReceiver::add() where possible 2023-09-25 10:58:31 +02:00
Terminal Userland: Use non-fallible EventReceiver::add() where possible 2023-09-25 10:58:31 +02:00
TerminalSettings LibGfx: Convert Font APIs to return String instead of DeprecatedString 2023-09-06 11:29:03 -04:00
TextEditor Userland: Compare event MIME type list with a StringView 2023-09-29 14:40:21 +01:00
ThemeEditor Userland: Compare event MIME type list with a StringView 2023-09-29 14:40:21 +01:00
VideoPlayer Userland: Make Window::set_main_widget() non-fallible 2023-09-21 10:20:23 +02:00
Welcome Userland: Make Window::set_main_widget() non-fallible 2023-09-21 10:20:23 +02:00
CMakeLists.txt Maps: Add MapsSettings with multiple tile providers options 2023-09-18 12:46:41 -06:00