mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 08:42:43 +08:00
support dirtyRegion and retina on UC browser (#2794)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user