E.g.
- Code: Select all
@Override
public void onPaint(CefBrowser browser, boolean popup, final Rectangle[] dirtyRects,
ByteBuffer buffer, int width, int height) {
// Note: component_ is the swing component i'm using to render/size the offscreen browser
System.out.println("onPaint width="+width+", height="+height+", cmpWidth="+component_.getWidth()+", cmpHeight="+component_.getHeight());
...
Outputs
- Code: Select all
onPaint width=522, height=642, cmpWidth=522, cmpHeight=642
On a device with retina (so scale is 2.0).
What I would hope for is output like:
- Code: Select all
onPaint width=1044, height=1284, cmpWidth=522, cmpHeight=642
Meaning that the pixels I receive are double the density of the Swing component's dimensions.
Is there a way to configure this?