Ejecta icon indicating copy to clipboard operation
Ejecta copied to clipboard

creating 2 canvas screen problem ?

Open matrixreal opened this issue 9 years ago • 21 comments

canvas hi, i just download your lastest fork when i lunch the game i have the follwing issues there are 2 canvas screen created ? why ? or how to solve this ? (i don't use what you told me in last post about setting canvas.heigh/twidh and style) these days i try to keep my code clean and fast ... this why i try to solve any problems... thansk

matrixreal avatar Apr 22 '15 02:04 matrixreal

this message will be print when you change the size of canvas . Did you do that ?

finscn avatar Apr 22 '15 03:04 finscn

ni, i told you that i just donwload your lastest fork and i don't change anything related last post about the canvas screen (our discussion) = i don't use it

matrixreal avatar Apr 22 '15 03:04 matrixreal

you mean the original ejecta no this log ?

finscn avatar Apr 22 '15 03:04 finscn

And I just see one canvas be created , not see the second one.

finscn avatar Apr 22 '15 03:04 finscn

your fork retry it by your self

matrixreal avatar Apr 22 '15 03:04 matrixreal

tried , and not reproduction :(

finscn avatar Apr 22 '15 04:04 finscn

in your image , I just see one canvas be created (in the red rectangle), where is the second one ?

finscn avatar Apr 22 '15 04:04 finscn

ok thats not a big problem anyway thanks

matrixreal avatar Apr 22 '15 04:04 matrixreal

@matrixreal , I found this problem. the Original Ejecta has this issue too.

finscn avatar Apr 22 '15 05:04 finscn

I have this problem too. Is there a fix? On Wed, 22 Apr 2015 at 2:31 pm finscn [email protected] wrote:

@matrixreal https://github.com/matrixreal , I found this problem. the Original Ejecta has this issue too.

— Reply to this email directly or view it on GitHub https://github.com/finscn/Ejecta/issues/5#issuecomment-95035541.

rungo73 avatar Apr 22 '15 05:04 rungo73

see https://github.com/phoboslab/Ejecta/issues/502

finscn avatar Apr 22 '15 05:04 finscn

Don't worry , I will fix it soon :)

finscn avatar Apr 22 '15 05:04 finscn

Done :), please pull new version.

finscn avatar Apr 22 '15 05:04 finscn

Okay, great! On Wed, 22 Apr 2015 at 2:46 pm finscn [email protected] wrote:

Done :), please pull new version.

— Reply to this email directly or view it on GitHub https://github.com/finscn/Ejecta/issues/5#issuecomment-95038419.

rungo73 avatar Apr 22 '15 05:04 rungo73

@rungo73 have you this problem too ? and you fix it ? @finscn about canvas.width = w * window.devicePixelRatio; canvas.height = h * window.devicePixelRatio; canvas.style.width = w ; canvas.style.height = h;

is this with retinaresolution to true or false ?

because i'm woring on ios game and i have to work for universel device (iphone 4 , 4s , 5 ,5s , 6 , 6 plus , ipad etc ...)

matrixreal avatar Apr 22 '15 05:04 matrixreal

@matrixreal

  • I fix this bug. please pull new version.
  • retinaResolution = false;

finscn avatar Apr 22 '15 06:04 finscn

My build runs ok but I get this warning in console..

*Class JSWTFMainThreadCaller is implemented in both *

Is this a problem?

On Wed, Apr 22, 2015 at 4:14 PM, finscn [email protected] wrote:

@matrixreal https://github.com/matrixreal

I fix this bug. please pull new version.

retinaResolution = false;

— Reply to this email directly or view it on GitHub https://github.com/finscn/Ejecta/issues/5#issuecomment-95043529.

rungo73 avatar Apr 22 '15 06:04 rungo73

@rungo73 , I think no problem. see https://github.com/phoboslab/Ejecta/issues/479

finscn avatar Apr 22 '15 06:04 finscn

Ok good. On Wed, 22 Apr 2015 at 3:55 pm finscn [email protected] wrote:

@rungo73 https://github.com/rungo73 , I think no problem. see phoboslab#479 https://github.com/phoboslab/Ejecta/issues/479

— Reply to this email directly or view it on GitHub https://github.com/finscn/Ejecta/issues/5#issuecomment-95045211.

rungo73 avatar Apr 22 '15 06:04 rungo73

@finscn you fixed it ? ah thats so cool

and so i don't need to add to my code canvas.width = w * window.devicePixelRatio; canvas.height = h * window.devicePixelRatio; canvas.style.width = w ; canvas.style.height = h;

now its automatically ?

matrixreal avatar Apr 22 '15 21:04 matrixreal

@matrixreal , you have not to set style.width/height but canvas.width/height is request.

finscn avatar Apr 23 '15 03:04 finscn