Skip to content

2D overlay : EmulGL and native should have the same code when dealing with HiDPI #304

@jzy3d

Description

@jzy3d

Currently, some specific code is required when handling 2D overlays with JOGL (native) and EmulGL charts.

IViewOverlay impl JOGL : AWTNativeViewOverlay) EmulGL : EmulGLViewOverlay
Similar Applies pixel scale to G2D Applies pixel scale to G2D
Different canvas.getRendererHeight() is pixel scaled canvas.getRendererHeight() is not pixel scaled

This result in lot of code area where we use canvas.isNative() to apply different formulae for the layout in EmulGL or Native (e.g. View2DLayout).

Code would be simpler and more readable if EmulGLCanvas could return a scaled renderer height/width.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions