1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00
serenity/Userland
Nico Weber 2ec6bbd7a1 LibGfx: Add a draw_scaled_bitmap() variant that takes a FloatRect as src_rect
Consider

    draw_scaled_bitmap({0, 0, 10, 10}, source, {0, 0, 5, 5}).

Imagine wanting to split that up into two calls, like e.g. the
compositor when redrawing the background with damage rects. You really
want to be able to say

    draw_scaled_bitmap({0, 0, 5, 10}, source, {0, 0, 2.5, 5})

but up to now you couldn't. Now you can.

This makes painting very low-res images (such as tile.png) in mode
"stretch" work much better.
2021-01-22 22:13:53 +01:00
..
Applications LibGUI: Resolve cyclic inclusion 2021-01-22 21:49:54 +01:00
Demos LibGfx: Add a draw_scaled_bitmap() variant that takes a FloatRect as src_rect 2021-01-22 22:13:53 +01:00
DevTools Kernel+Userland: Remove shared buffers (shbufs) 2021-01-17 09:07:32 +01:00
DynamicLoader Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Games Conway: Don't run misleading srand() 2021-01-20 19:19:34 +01:00
Libraries LibGfx: Add a draw_scaled_bitmap() variant that takes a FloatRect as src_rect 2021-01-22 22:13:53 +01:00
MenuApplets Everywhere: Drop "shared_buffer" in most GUI programs, pledge "recvfd" 2021-01-16 19:30:32 +01:00
Services LibGfx: Add a draw_scaled_bitmap() variant that takes a FloatRect as src_rect 2021-01-22 22:13:53 +01:00
Shell Everywhere: Fix typos 2021-01-22 18:41:29 +01:00
Tests LibC: Test behavior around overlong paths 2021-01-16 22:40:53 +01:00
Utilities su: Drop "id" pledge after switching user 2021-01-22 19:40:30 +01:00
CMakeLists.txt Services: Move to Userland/Services/ 2021-01-12 12:23:01 +01:00