Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a few RGB-aware set & blend methods to the blitters #1680

Merged
merged 43 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
c924cf8
Add RGB Highlights
smasher816 Oct 26, 2023
4ac358c
Simplify BB_fill_rect_color
NiLuJe Nov 1, 2023
ca873ab
hashception!
NiLuJe Nov 1, 2023
54c4833
can't do that, it horribly break AA
NiLuJe Jan 21, 2024
40ba4c4
Also can't really do that, it breaks the API
NiLuJe Jan 21, 2024
8f48dd0
A dumb MUL blend works extremely well for blakc text.
NiLuJe Jan 21, 2024
5e1dd38
I should got ake a nap.
NiLuJe Jan 21, 2024
3106499
I need to try this on actual colored text. Methinks it won't quite cut
NiLuJe Jan 21, 2024
3d41552
Jot down some more stuff to try
NiLuJe Jan 21, 2024
9bccbda
Try some more stuff
NiLuJe Jan 21, 2024
3dddf95
More random notes
NiLuJe Jan 21, 2024
b5d241b
Start rationalizing the C BB implementations
NiLuJe Jan 21, 2024
8d9be6d
Start renaming BB_fill_rect_color to BB_fill_rect_RGB32
NiLuJe Jan 21, 2024
37d3be4
Finish renaming BB_fill_rect_color
NiLuJe Jan 21, 2024
32a2a5b
Inline the source_y8 store
NiLuJe Jan 21, 2024
4cf224d
This needs to live in base
NiLuJe Jan 21, 2024
7b0a281
Rename BB_color_blit_from_rgb to BB_color_blit_from_RGB32
NiLuJe Jan 21, 2024
523751f
Start moving the type-check burden to the caller
NiLuJe Jan 21, 2024
a3352e6
Address a 10-year old TODO, and properly rename dimRect & lightenRect
NiLuJe Jan 21, 2024
ce230f2
Keep revamping the whole thing so it actually has a chance of working
NiLuJe Jan 21, 2024
9329b83
Constify Color? pointers
NiLuJe Jan 21, 2024
f613324
Wire in the C version of multiplyRectRGB
NiLuJe Jan 21, 2024
ee50150
Update "gray" so that it matches our default grayscale highlight
NiLuJe Jan 22, 2024
0f02247
Explain it.
NiLuJe Jan 22, 2024
b00c2e6
Implement setPixelColorizeRGB32 in the Lua blitter
NiLuJe Jan 22, 2024
609ffaf
And implement setPixelMultiply in the Lua blitter
NiLuJe Jan 22, 2024
9f7c6be
Implement blendRectRGB32
NiLuJe Jan 22, 2024
1cd0a45
LuaCheck'ed
NiLuJe Jan 22, 2024
341f05e
Simplify setPixelColorizeRGB32
NiLuJe Jan 22, 2024
c9a3cad
Make colorblitFromRGB32 safer
NiLuJe Jan 22, 2024
bad4ea5
make red redder, and less carrot soup
NiLuJe Jan 22, 2024
7d457d3
Tweak colors some more
NiLuJe Jan 22, 2024
6e8277a
Make sure we cast colors to the right type first
NiLuJe Jan 22, 2024
5c6534d
More logical color orders
NiLuJe Jan 22, 2024
a7710f9
Drop gray from the highlight colors, and let colorFromName return `nil`
NiLuJe Jan 22, 2024
94ffa8e
Tighter scope for source_y8
NiLuJe Aug 26, 2024
53f5dfb
Fix a -Wunused-parameter warning
NiLuJe Aug 26, 2024
0942857
Fix a -Wsign-compare warning
NiLuJe Aug 26, 2024
171c10d
Fix a truckload of -Wtype-limits warnings
NiLuJe Aug 26, 2024
bd56c8c
Increase the alignment constraint on Kobo MTK
NiLuJe Aug 26, 2024
99f302e
Eeh, go back down to 8, it doesn't help for REAGL -_-".
NiLuJe Aug 26, 2024
824488c
Oh, no, I'd just forgotten that we enforced different constraints when
NiLuJe Aug 26, 2024
24b5f0f
Add a sliiightly more pastel green
NiLuJe Aug 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading