mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
add resize log
This commit is contained in:
@@ -363,6 +363,7 @@ export class WebGLGFXDevice extends GFXDevice {
|
||||
}
|
||||
|
||||
public resize (width: number, height: number) {
|
||||
console.log('Device resize: ' + width + 'x' + height);
|
||||
this._canvas!.width = width;
|
||||
this._canvas!.height = height;
|
||||
this._width = width;
|
||||
|
||||
@@ -281,6 +281,7 @@ export class WebGL2GFXDevice extends GFXDevice {
|
||||
}
|
||||
|
||||
public resize (width: number, height: number) {
|
||||
console.log('Device resize: ' + width + 'x' + height);
|
||||
this._canvas!.width = width;
|
||||
this._canvas!.height = height;
|
||||
this._width = width;
|
||||
|
||||
Reference in New Issue
Block a user