ShiroSmith 7 vuotta sitten
vanhempi
commit
0e17e78d25
2 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 2 2
      hxd/BitmapData.hx
  2. 1 1
      hxd/net/Socket.hx

+ 2 - 2
hxd/BitmapData.hx

@@ -166,7 +166,7 @@ class BitmapData {
 			r.x = x;
 			r.y = y;
 			bmp.draw(src.bmp, m, null, flash.display.BlendMode.SCREEN, r, false);
-		case SoftAdd, AlphaAdd:
+		case SoftAdd, AlphaAdd, Sub, Max:
 			throw "BlendMode not supported";
 		}
 		#else
@@ -192,7 +192,7 @@ class BitmapData {
 			flash.display.BlendMode.MULTIPLY;
 		case Screen:
 			flash.display.BlendMode.SCREEN;
-		case SoftAdd, AlphaAdd:
+		case SoftAdd, AlphaAdd, Sub, Max:
 			throw "BlendMode not supported";
 		}
 

+ 1 - 1
hxd/net/Socket.hx

@@ -221,7 +221,7 @@ private class FlashSocketOutput extends SocketOutput {
 		f();
 	}
 
-	override function writeString( str : String ) {
+	override function writeString( str : String, ?encoding :  haxe.io.Encoding ) {
 		s.writeUTFBytes(str);
 		f();
 	}