Skip to content

Instantly share code, notes, and snippets.

private static var runNextFrameMutex = new Mutex();
private static var runNextFrameQueue0 = new Array<Void->Void>();
private static var runNextFrameQueue1 = new Array<Void->Void>();
private static var runOnExitFrameMutex = new Mutex();
private static var runOnExitFrameQueue0 = new Array<Void->Void>();
private static var runOnExitFrameQueue1 = new Array<Void->Void>();
// runNextFrame calls func at the beginning of the next ENTER_FRAME event.
___
/\_ \ __
\//\ \ /\_\ ___ ___ __
\ \ \ \/\ \ /' __` __`\ /'__`\
\_\ \_\ \ \/\ \/\ \/\ \/\ __/
/\____\\ \_\ \_\ \_\ \_\ \____\
\/____/ \/_/\/_/\/_/\/_/\/____/
Lime Command-Line Tools (2.9.1)
package;
import openfl.display.Bitmap;
import openfl.display.BitmapData;
import openfl.display.Sprite;
import openfl.events.Event;
import openfl.geom.Rectangle;
import openfl.Assets;
diff --git a/openfl/display/BitmapData.hx b/openfl/display/BitmapData.hx
index d373ed4..fc4ebf5 100644
--- a/openfl/display/BitmapData.hx
+++ b/openfl/display/BitmapData.hx
@@ -159,6 +159,7 @@ class BitmapData implements IBitmapDrawable {
@:noCompletion private var __buffer:GLBuffer;
@:noCompletion private var __isValid:Bool;
@:noCompletion private var __surface:CairoSurface;
+ @:noCompletion private var __surfaceFinalizer:BitmapDataSurfaceFinalizer;
@:noCompletion private var __texture:GLTexture;
package lime.graphics.cairo;
@:cppFileCode("
void lime_cairo_surface_destroy (double surface);
void lime_cairo_surface_flush (double surface);
")
abstract CairoSurface(Dynamic) from Float to Float {
diff --git a/openfl/display/Bitmap.hx b/openfl/display/Bitmap.hx
index 94a4b32..a481bd3 100644
--- a/openfl/display/Bitmap.hx
+++ b/openfl/display/Bitmap.hx
@@ -187,8 +187,23 @@ class Bitmap extends DisplayObject {
@:noCompletion @:dox(hide) public override function __renderGL (renderSession:RenderSession):Void {-
+
+ if (scrollRect != null) {
diff --git a/tools/CommandLineTools.hx b/tools/CommandLineTools.hx
index 8c36f02..4512cfc 100644
--- a/tools/CommandLineTools.hx
+++ b/tools/CommandLineTools.hx
@@ -489,13 +489,17 @@ class CommandLineTools {
if (project.targetHandlers.exists (Std.string (project.target))) {
LogHelper.info ("", LogHelper.accentColor + "Using target platform: " + Std.string (project.target).to-
+
var handler = project.targetHandlers.get (Std.string (project.target));
int tmp16 = vertices->length; HX_STACK_VAR(tmp16,"tmp16");
HX_STACK_LINE(445)
Float tmp17 = (Float(tmp16) / Float((int)2)); HX_STACK_VAR(tmp17,"tmp17");
HX_STACK_LINE(445)
int tmp18 = ::Std_obj::_int(tmp17); HX_STACK_VAR(tmp18,"tmp18");
@james4k
james4k / 2014_playerhours.sql
Last active August 29, 2015 14:16
2014 player hours, rough data
select left(g.name, 30) as name, (sum(sum) * 1.0 / sum(samples) * count(*) * 24.0)::bigint as hours
from game_players_daily gpd, games g
where gpd.appid = g.appid and date_part('year', time) = 2014
group by g.appid
order by hours desc
limit 100;
@james4k
james4k / gist:81e35a355fcd3eb21db5
Created June 6, 2014 19:31
peak concurrent players of action category
appid | name | peak | avgmonthlypeak
--------+-------------------------------------------------------------+--------+----------------
570 | Dota 2 | 843024 | 445037
730 | Counter-Strike: Global Offensive | 170137 | 67985
550 | Left 4 Dead 2 | 161590 | 26382
49520 | Borderlands 2 | 123596 | 32038
440 | Team Fortress 2 | 117917 | 80091
105600 | Terraria | 97392 | 18524
211820 | Starbound | 88355 | 26514
236430 | DARK SOULS™ II | 79528 | 40627