File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -273,8 +273,8 @@ class Canvas extends ProxyClass<android.graphics.Canvas> {
273
273
export class Paint extends ProxyClass < android . graphics . Paint > {
274
274
mNative : android . graphics . Paint ;
275
275
mFontInternal : Font ;
276
- mNeedsFontUpdate = false ;
277
- handlesFont = false ;
276
+ mNeedsFontUpdate ;
277
+ handlesFont ;
278
278
getNative ( ) {
279
279
if ( ! this . handlesFont && this . mNeedsFontUpdate ) {
280
280
this . mNeedsFontUpdate = false ;
@@ -287,7 +287,9 @@ export class Paint extends ProxyClass<android.graphics.Paint> {
287
287
constructor ( paint ?: Paint ) {
288
288
super ( ) ;
289
289
if ( paint ) {
290
- this . mNative = new android . graphics . Paint ( paint ?. getNative ( ) ) ;
290
+ this . mNative = new android . graphics . Paint ( paint . getNative ( ) ) ;
291
+ } else {
292
+ this . mNative = new android . graphics . Paint ( 1 ) ; //android.graphics.Paint.ANTI_ALIAS_FLAG
291
293
}
292
294
this . mNative . setLinearText ( true ) ; // ensure we are drawing fonts correctly
293
295
return this ;
Original file line number Diff line number Diff line change @@ -854,7 +854,7 @@ export class Paint implements IPaint {
854
854
strokeMiter = 0 ;
855
855
strokeCap : Cap = Cap . BUT ;
856
856
strokeJoin : Join = Join . BEVEL ;
857
- antiAlias ;
857
+ antiAlias = true ;
858
858
dither ;
859
859
alpha = 255 ;
860
860
currentContext : any ;
You can’t perform that action at this time.
0 commit comments