Effece / Smiletris-4

Recreation of Smiletris, a variation of the iconic Tetris game. Mainly new events. Made in Java, executable in console or in a window using javax.swing and java.awt.
1 stars 0 forks source link

Screen size #10

Closed Effece closed 1 year ago

Effece commented 1 year ago

Because, for the interface, I use two objects of different packages, they don't use the same units. The JFrame from javax.swing is mesured in pixels, the Graphics2D from java.awt is mesured in MDI. I tried to convert from one to another but the only code I found uses a Context object which I would love to get to know but it is so undocumented I didn't find any way of using it.

Effece commented 1 year ago

Removing the frame's decorations changed its unit system for some reasons.