wei-spring / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

windows 8 phone: repaint(x, y, w, h) erasing entire container #997

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is for windows 8 phone, and this occurs on the windows 8 emulator.

I have a container which I have overridden paint(g), At times I do not need to 
redraw he entire container, so instead of calling repaint() I call repaint(x, 
y, w, h).

This works as expected in android, iOS and in the Lumina Simulator, but on the 
win 8 emulator the call is erasing the entire container and then only drawing 
the specified area. If repaint() is called in its place, the entire container 
is drawn.

Original issue reported on code.google.com by killerbe...@gmail.com on 14 Dec 2013 at 5:35

GoogleCodeExporter commented 9 years ago
This would not be possible with the current Windows Phone port and there are 
some inherent issues involved related to the way that is implemented. 
We are considering a rewrite of the graphics layer on Windows Phone for the 
next update which should improve performance and solve this issue but for now I 
would recommend not using paint(Graphics) at all on Windows Phone. 

Original comment by shai.almog on 15 Dec 2013 at 6:07