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:
parent
ce0860fc18
commit
f14193e17b
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue