File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -579,11 +579,7 @@ class CanvasView extends CanvasBase {
579579 return view ;
580580 }
581581 [ hardwareAcceleratedProperty . getDefault ] ( value ) {
582- if ( getSDK ( ) >= 28 ) {
583- return true ;
584- } else {
585- return false ;
586- }
582+ return getSDK ( ) >= 28 ;
587583 }
588584
589585 [ hardwareAcceleratedProperty . setNative ] ( value ) {
@@ -604,7 +600,7 @@ class CanvasView extends CanvasBase {
604600 startTime = Date . now ( ) ;
605601 }
606602 const scale = this . density ;
607- canvas . setDensity ( Math . round ( scale * 160 ) ) ;
603+ // canvas.setDensity(Math.round(scale * 160));
608604 canvas . scale ( scale , scale ) ; // always scale to device density to work with dp
609605 this . augmentedCanvas . _native = canvas ;
610606 this . onDraw ( this . augmentedCanvas as any ) ;
You can’t perform that action at this time.
0 commit comments