mbien commented on code in PR #8310: URL: https://github.com/apache/netbeans/pull/8310#discussion_r1990439238
########## platform/core.windows/src/org/netbeans/core/windows/view/dnd/DragWindow.java: ########## @@ -95,15 +102,17 @@ private BufferedImage createContentImage( Component c, Dimension contentSize ) { GraphicsConfiguration config = GraphicsEnvironment.getLocalGraphicsEnvironment() .getDefaultScreenDevice().getDefaultConfiguration(); - BufferedImage res = config.createCompatibleImage(contentSize.width, contentSize.height); + BufferedImage res = config.createCompatibleImage( + contentSize.width * DPI_SCALE, contentSize.height * DPI_SCALE); Graphics2D g = res.createGraphics(); + g.scale(DPI_SCALE, DPI_SCALE); Review Comment: oh nevermind. I assumed `contentSize` is the size of the component. Its only 250x250 on 1080p so this is no problem to double it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For additional commands, e-mail: notifications-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists