1
0
mirror of https://github.com/hajimehoshi/ebiten.git synced 2025-02-25 09:20:08 +01:00
Commit Graph

11 Commits

Author SHA1 Message Date
divVerent
5bc7b93e6f
Move VideoModeScaleAt into internal/uidriver/glfw. ()
It's only used by GLFW, and has been in devicescale only to ease migration
to separate video mode vs content scaling.

Updates 
2021-09-15 12:47:04 +09:00
divVerent
923c84a3d6
Split the concept of device scale and screen scale ()
We now set deviceScale to always the mapping from logical window system pixels
to device independent pixels (which is what Ebiten API users expect), and
introduce a new concept of videoModeScale that maps from video mode to logical
window system pixels.

videoModeScale is now only used for computing full-screen resolutions, while
deviceScale is used for any other conversion.

Fixes window sizes on X11, should be a NOP otherwise.

Closes .
2021-09-15 01:03:04 +09:00
Hajime Hoshi
2106e0fa6a devicescale: Use devicePixelRatio property for go2cpp 2020-12-20 00:45:13 +09:00
Hajime Hoshi
5897e1ab7c Implement some preparation code for go2cpp
Updates 
2020-11-30 23:18:42 +09:00
Hajime Hoshi
7a0e31a23a Clean up the 'js' build tags
Updates 
2020-10-07 01:33:10 +09:00
Hajime Hoshi
10fb5e33be Replace GopherWasm with syscall/js
Fixes 
2019-05-01 17:28:00 +09:00
Hajime Hoshi
55a397bd65 devicescale: Specify the monitor to get the scale
Fixes 
2018-10-06 19:43:23 +09:00
Hajime Hoshi
6e51d31524
Use new GopherWasm API ()
I plan to merge this right after
https://github.com/gopherjs/gopherwasm/pull/3 is merged.
2018-06-30 00:02:15 +09:00
Hajime Hoshi
a9359e4ef8 Use GopherJS/GopherWasm 2018-06-24 16:10:24 +09:00
Hajime Hoshi
980055e07a devicescale: Use gopherwasm 2018-05-25 02:00:41 +09:00
Hajime Hoshi
60993fe3ea devicescale: Rename files 2018-01-04 03:19:19 +09:00