support dirtyRegion and retina on UC browser (#2794)

This commit is contained in:
Jare Guo
2018-06-05 11:07:18 +08:00
committed by pandamicro
parent 5c578253ac
commit 60bcb42d32
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ var View = cc._Class.extend({
_t._orientation = 3;
var sys = cc.sys;
_t.enableRetina(sys.os === sys.OS_IOS || sys.os === sys.OS_OSX);
_t.enableRetina(true);
cc.visibleRect && cc.visibleRect.init(_t._visibleRect);
// Setup system default resolution policies
+1 -1
View File
@@ -46,7 +46,7 @@ cc.rendererCanvas = {
//max dirty Region count, default is 10
_dirtyRegionCountThreshold: 10,
init: function() {
if(cc.sys.browserType === cc.sys.BROWSER_TYPE_IE || cc.sys.browserType === cc.sys.BROWSER_TYPE_UC) {
if(cc.sys.browserType === cc.sys.BROWSER_TYPE_IE) {
this.enableDirtyRegion(false);
}
},