I have an application drawing objects onto a canvas in a surfaceview using lockCanvas()/unlockCanvasAndPost(canvas), originally designed to run in HVGA (480x320).
In the long run I intend to optimize it for other resolutions, however for now I make use of the auto scaling feature of the framework, which works somewhat acceptable. On my Nexus One, the canvas is upscaled to the resolution of WVGA (800x480), but due to the different aspect ratio a black region is present in the right hand part of the screen, which is obviously inevitable. In the application objects are entering the canvas from the right by drawing them from the right canvas-edge to the left, and thus extending the canvas and the screen. This approach works fine in HVGA, but in WVGA the part of the objects extending the canvas (and screen) now becomes visible in the black region. This is, as such, acceptable except for the fact that this black region is not "cleared" between each frame, and thus producing trailed "garbage" in this region. Is it somehow possible to define that only what is inside the (original) canvas should be drawn? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

