[piccolo2d-dev] Re: Issue 83 in piccolo2d: PSwing are fuzzy when scale!=1, due to buffering of the PSwing

2009-11-03 Thread piccolo2d

Updates:
Status: Verified

Comment #24 on issue 83 by heuermh: PSwing are fuzzy when scale!=1, due to  
buffering of the PSwing
http://code.google.com/p/piccolo2d/issues/detail?id=83

Looks good to me on Mac OSX 10.5.8 PPC

$ java -version
java version 1.5.0_20
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_20-b02-315)
Java HotSpot(TM) Client VM (build 1.5.0_20-141, mixed mode, sharing)

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~-~--~~~---~--~~
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
-~--~~~~--~~--~--~---



[piccolo2d-dev] Re: Issue 83 in piccolo2d: PSwing are fuzzy when scale!=1, due to buffering of the PSwing

2009-07-18 Thread Allain Lalonde

Thanks, does text jump when zooming? On mac?

On 7/18/09, codesite-nore...@google.com codesite-nore...@google.com wrote:


 Comment #16 on issue 83 by mr0...@mro.name: PSwing are fuzzy when scale!=1,
 due to buffering of the PSwing
 http://code.google.com/p/piccolo2d/issues/detail?id=83

 great, I added a

  pCanvas.getCamera().scale(0.98f);

 at line 171 - the result looks great to me. Shots attached.

 Attachments:
   PSwingExample1-scale-100.png  85.6 KB
   PSwingExample1-scale-098.png  100 KB

 --
 You received this message because you are listed in the owner
 or CC fields of this issue, or because you starred this issue.
 You may adjust your issue notification preferences at:
 http://code.google.com/hosting/settings

 


-- 
Sent from my mobile device

--~--~-~--~~~---~--~~
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
-~--~~~~--~~--~--~---



[piccolo2d-dev] Re: Issue 83 in piccolo2d: PSwing are fuzzy when scale!=1, due to buffering of the PSwing

2009-07-14 Thread allain

I don't have access to a mac but would someone with access to it
please try replacing PSwing's paint method with the following and
telling me if it works?

public void paint(Graphics2D g2) {
if (component.getBounds().isEmpty()) {
// The component has not been initialized yet.
return;
}

PSwingRepaintManager manager = (PSwingRepaintManager)
RepaintManager.currentManager(component);
manager.lockRepaint(component);

RenderingHints oldHints = g2.getRenderingHints();

g2.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS,
 
RenderingHints.VALUE_FRACTIONALMETRICS_OFF);
component.paint(g2);

g2.setRenderingHints(oldHints);

manager.unlockRepaint(component);
}

Thank you.

On Jul 14, 1:24 am, codesite-nore...@google.com wrote:
 Comment #5 on issue 83 by samrreid: PSwing are fuzzy when scale!=1, due to  
 buffering of the PSwinghttp://code.google.com/p/piccolo2d/issues/detail?id=83

 My team and I tried removing buffering from PSwing; however, it caused a  
 problem that
 some swing components (buttons, labels, etc) rendered with a '...' on Mac.  
 That is,
 instead of a button reading Press Me, on a Mac, some unbuffered PSwings  
 would read
 something like Press M  So we have re-enabled buffering in PSwing in  
 our local
 copy and recommend not disabling buffering until this problem is resolved.

 --
 You received this message because you are listed in the owner
 or CC fields of this issue, or because you starred this issue.
 You may adjust your issue notification preferences 
 at:http://code.google.com/hosting/settings
--~--~-~--~~~---~--~~
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
-~--~~~~--~~--~--~---