×

Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    22

    Default Clip Area on 7650/3650

    Seems like the default clip area on series 60 phones is significantly less than the full screen. It comes in as 144 versus the full screen of 208. This happens without any clip manipulations on my part and comes through when the system calls paint. try the code below inside your paint call with a nokia full canvas.


    //mm: weird clipping test code
    g.setGrayScale(0);
    g.fillRect(0,0,width,height);
    g.setColor(255,0,0);
    g.fillRect(g.getClipX(), g.getClipY(), g.getClipWidth(), g.getClipHeight());
    g.setGrayScale(255);
    g.drawString("?" + g.getClipHeight() + "/" + getHeight
    ,0,0,g.TOP|g.LEFT);

    thanks for any help.

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    I've seen this too. It looks like getClipHeight() has a bug when the Graphics context is in a FullCanvas on Series 60 phones. 144 is the height of a normal Canvas. In these situations I use getHeight() which does return 208....

    shmoove

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×