Skip to content

Commit

Permalink
Fix v2 embedFonts behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
jgranick committed Jan 13, 2015
1 parent f1b75a7 commit 94193db
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions openfl/_v2/text/TextField.hx
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ class TextField extends InteractiveObject {

private function get_displayAsPassword ():Bool { return lime_text_field_get_display_as_password (__handle); }
private function set_displayAsPassword (value:Bool):Bool { lime_text_field_set_display_as_password (__handle, value); return value; }
private function get_embedFonts ():Bool { return __embedFonts; }
private function set_embedFonts (value:Bool):Bool { return __embedFonts = value; }
private function get_embedFonts ():Bool { return lime_text_field_get_embed_fonts (__handle); }
private function set_embedFonts (value:Bool):Bool { return lime_text_field_set_embed_fonts (__handle, value); return value; }

This comment has been minimized.

Copy link
@T1mL3arn

T1mL3arn Jan 14, 2015

Contributor
return lime_text_field_set_embed_fonts (__handle, value);
return value;

Double return?

This comment has been minimized.

Copy link
@jgranick

jgranick Jan 14, 2015

Author Member

Thanks for the catch, should only return after 😄

private function get_htmlText ():String { return StringTools.replace (lime_text_field_get_html_text (__handle), "\n", "<br/>"); }
private function set_htmlText (value:String):String { lime_text_field_set_html_text (__handle, value); return value; }
private function get_maxChars ():Int { return lime_text_field_get_max_chars (__handle); }
Expand Down Expand Up @@ -252,6 +252,8 @@ class TextField extends InteractiveObject {
private static var lime_text_field_set_selectable = Lib.load ("lime", "lime_text_field_set_selectable", 2);
private static var lime_text_field_get_display_as_password = Lib.load ("lime", "lime_text_field_get_display_as_password", 1);
private static var lime_text_field_set_display_as_password = Lib.load ("lime", "lime_text_field_set_display_as_password", 2);
private static var lime_text_field_get_embed_fonts = Lib.load ("lime", "lime_text_field_get_embed_fonts", 1);
private static var lime_text_field_set_embed_fonts = Lib.load ("lime", "lime_text_field_set_embed_fonts", 2);
private static var lime_text_field_get_def_text_format = Lib.load ("lime", "lime_text_field_get_def_text_format", 2);
private static var lime_text_field_set_def_text_format = Lib.load ("lime", "lime_text_field_set_def_text_format", 2);
private static var lime_text_field_get_auto_size = Lib.load ("lime", "lime_text_field_get_auto_size", 1);
Expand Down

0 comments on commit 94193db

Please sign in to comment.