Commit graph

14 commits

Author SHA1 Message Date
Splendide Imaginarius
a15e4aff14
Merge pull request #178 from Splendide-Imaginarius/mkxp-z-sprite-lanczos
Implement smooth scaling for simple sprites
2024-04-02 03:44:55 +00:00
Splendide Imaginarius
58d7ec8519 Implement smooth scaling for simple sprites 2024-03-22 04:35:06 +00:00
Wayward Heart
35d46e627d Guard against deleted bitmaps
Ruby is not guaranteed to delete bitmaps after any windows, sprites, etc that they are attached to. In the event that the attached object is not deleted before the next call to Graphics.update, this will most likely result in a segfault, as isDisposed() is not guaranteed to return true for a deleted bitmap.

Bitmap::invalid was added in an attempt to guard against this for sprites, but since the bitmap in question is deleted it's not guaranteed that the pointer actually points to null, which made the fix unreliable.
2024-01-10 09:41:00 -06:00
Splendide Imaginarius
11a1fef1c3 Implement hi-res Bitmap replacement 2023-10-25 15:39:28 +00:00
Amaryllis Kulla
fae7fa9c4e
Update ancurio's copyright notice (#29) 2023-10-04 15:07:34 -04:00
Struma
0072c19371 Multiple changes
+ Time is now measured in fractions of a second, not microseconds
+ Viewports in RGSS1 will now only retain weak references to their children
+ Invalid Sprite bitmaps found during Graphics.update will be treated as null
+ Bitmap#mega? and Bitmap#animated? are properly rescued
2023-05-03 23:00:06 -04:00
Struma
725d593db3 add Sprite.pattern_blend_type 2021-11-29 21:58:18 -05:00
Struma
3dc2128b25 Swapping pattern fit modes + color inversion 2021-11-29 18:57:43 -05:00
Struma
6722a1e61a Add settable bitmap patterns on Sprites 2021-11-29 06:58:41 -05:00
Struma
baaa162e2c Remove libsigc++, use sigslot instead 2021-06-14 10:03:56 -04:00
Struma
c7803c8d09 Hook bitmaps into prepareDraw 2021-05-05 04:30:11 -04:00
Struma
6fe980abc8 Massively improve animation frame timing 2021-05-04 23:32:01 -04:00
Struma
f98b91ff9a Support animated GIFs 2021-05-01 21:50:39 -04:00
Struma
f98b1e031f Reorganize src dir 2020-11-21 01:36:24 -05:00
Renamed from src/sprite.cpp (Browse further)