display.contentWidth, display.contentHeight behavior changed after corona update

Hello,
I have this simple code that displays rectangle (please see it below). Before I updated my corona it was displaying a rectangle all over the screen (rectangle size and screen size were the same). After I updated my corona sdk today with the same code I’m getting different result: rectangle width and height are only half of the screen size (please see the attached image). Does anyone know why?

I tried the same code without and with config file (and screen size inside) but the results are the same.

display.setDefault("background", 255, 255, 255) --white background local wall = display.newRect(0, 0, display.contentWidth, display.contentHeight); wall:setFillColor( black );

Thanks,

Tomasz

The latest daily build (2100) is based on the Graphics 2.0 rendering engine.  There are significant changes in positioning and coloring of objects in the change.  Please review this guide:

http://docs.coronalabs.com/guide/graphics/migration.html

for more information on migrating your code.

Rob

In Graphics 2.0, the correct way is this:

display.setDefault("background", 255, 255, 255) --white background local \_W = display.contentWidth local \_H = display.contentHeight local wall = display.newRect(\_W \* 0.5, \_H \* 0.5, \_W, \_H); wall:setFillColor( black );  

Regards

-j

The latest daily build (2100) is based on the Graphics 2.0 rendering engine.  There are significant changes in positioning and coloring of objects in the change.  Please review this guide:

http://docs.coronalabs.com/guide/graphics/migration.html

for more information on migrating your code.

Rob

In Graphics 2.0, the correct way is this:

display.setDefault("background", 255, 255, 255) --white background local \_W = display.contentWidth local \_H = display.contentHeight local wall = display.newRect(\_W \* 0.5, \_H \* 0.5, \_W, \_H); wall:setFillColor( black );  

Regards

-j