1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-11-30 08:07:52 +00:00

Fix black screen on Grabbable Camera

This commit is contained in:
EliteMasterEric 2024-02-12 16:49:36 -05:00
parent ce0860fc18
commit f14193e17b

View file

@ -87,7 +87,7 @@ class GrabbableCamera extends FlxCamera
BitmapDataUtil.applyFilter(bgBitmap, filter); BitmapDataUtil.applyFilter(bgBitmap, filter);
} }
function squashTo(bitmap:BitmapData, applyFilters:Bool, isolate:Bool):Void function squashTo(bitmap:BitmapData, applyFilters:Bool, isolate:Bool, clearScreen:Bool = false):Void
{ {
if (applyFilters && isolate) if (applyFilters && isolate)
{ {
@ -132,9 +132,12 @@ class GrabbableCamera extends FlxCamera
bgBitmap.draw(bitmap); bgBitmap.draw(bitmap);
} }
// clear graphics data if (clearScreen)
super.clearDrawStack(); {
canvas.graphics.clear(); // clear graphics data
// super.clearDrawStack();
// canvas.graphics.clear();
}
// render the background bitmap // render the background bitmap
bgFrame.frame.set(0, 0, width, height); bgFrame.frame.set(0, 0, width, height);