Commit Graph

3433 Commits

Author SHA1 Message Date
Hajime Hoshi
7ea1ab6b58 ui: Bug fix: currentMonitor should not return nil
Fixes #700
2018-10-06 03:22:33 +09:00
Hajime Hoshi
cae9e39453 ui: Use the best suitable monitor for fullscreen
This change also changes the definition of MonitorSize.
2018-10-06 02:59:38 +09:00
Hajime Hoshi
16f6aeaa4a ui: Refactoring: Use the current monitor 2018-10-06 02:38:02 +09:00
Hajime Hoshi
c0884b5ab2 audio/vorbis: Avoid unnecessary appending 2018-10-06 00:06:47 +09:00
Hajime Hoshi
1cf3022ce6 audio/vorbis: Update stbvorbis.js
Fixes #667
2018-10-05 22:12:39 +09:00
Hajime Hoshi
bd1fc4439a graphicsutil: Avoid passing NaN to shaders experimentally (#696) 2018-10-04 02:02:19 +09:00
Hajime Hoshi
1807a3f530 devicescale: Rename function 2018-10-04 01:28:53 +09:00
Hajime Hoshi
10b49bb0a3 ui: Don't call devicescale.DeviceScale too often 2018-10-03 04:29:12 +09:00
Hajime Hoshi
11d23bafa9 devicescale: Bug fix: the active window can't be passed to ReleaseDC 2018-10-03 04:16:28 +09:00
Hajime Hoshi
02a2fc2d44 ui: Bug fix: Force to adjust window size when scale is changed
Fixes #644
2018-10-03 03:26:11 +09:00
Hajime Hoshi
eef9c01735 gofmt -s -w 2018-10-03 03:25:44 +09:00
Hajime Hoshi
cf41e0aa0a devicescale: Rename logPixelSx -> logPixelsX 2018-10-03 03:13:36 +09:00
Hajime Hoshi
399317a2cf devicescale: Get the current monitor's scale on Windows (#644) 2018-10-03 03:09:42 +09:00
Hajime Hoshi
c494b53822 ui: Refactoring: Add deviceScale struct 2018-10-02 23:06:56 +09:00
Hajime Hoshi
635d624b77 ui: Update device scale on browsers (#644) 2018-10-02 11:43:45 +09:00
Hajime Hoshi
21c1ee5dfb ui: Cache devicescale value on mobiles 2018-10-02 03:51:13 +09:00
Hajime Hoshi
9906c935f6 ui: Remove unnecessary lock protection 2018-10-02 03:25:30 +09:00
Hajime Hoshi
fce82e1502 ui: Use frame counter to update device scale 2018-10-02 03:21:59 +09:00
Hajime Hoshi
78f2946797 ui: Bug fix: timer condition was wrong 2018-10-02 02:53:17 +09:00
Hajime Hoshi
bf850e12a4 ui: Recalc device scale repeatedly for multiple displays (#644) 2018-10-02 02:49:08 +09:00
Hajime Hoshi
26731f1ee2 Update dependencies 2018-10-01 11:14:05 +09:00
Hajime Hoshi
7921f67295 Update Oto version to v0.1.4 2018-10-01 10:46:12 +09:00
Hajime Hoshi
8ac50a47f9 examples/blur: Fix comments 2018-10-01 02:37:53 +09:00
Hajime Hoshi
5f87cc8acb docs: Add examples 2018-09-30 23:21:25 +09:00
Hajime Hoshi
502919dea0 examples/blur: Add comments 2018-09-30 23:17:17 +09:00
Hajime Hoshi
66ca53529b examples: Add blur example 2018-09-30 23:07:33 +09:00
Hajime Hoshi
308c8091cd ui: Fix comments 2018-09-30 18:53:38 +09:00
Hajime Hoshi
8df596396c input: Bug fix: wheel direction is opposite on browsers 2018-09-30 17:14:52 +09:00
Hajime Hoshi
0224858b7b examples/wheel: Improve message 2018-09-30 17:13:22 +09:00
Hajime Hoshi
803e42714e input: Implement wheel event on browsers
Fixes #630
2018-09-30 17:08:18 +09:00
Hajime Hoshi
ecef9cab0f examples: Add wheel example 2018-09-30 17:03:40 +09:00
Hajime Hoshi
237f6a2014 input: Rename MouseWheel -> Wheel 2018-09-30 17:01:45 +09:00
Hajime Hoshi
b6f0ea0100 input: Remove unused variables 2018-09-30 15:40:16 +09:00
Hajime Hoshi
25a5f1dd83 ui: Sleep when vsync doesn't work (#692) 2018-09-30 14:44:54 +09:00
Hajime Hoshi
2923bec0dc examples: Use TPS instead of FPS to indicate how fast the app works 2018-09-30 02:27:33 +09:00
Hajime Hoshi
15260537a2 graphics: Bug fix: fullscreen rendering was wrong
After fad65f2f5d, the viewport size
is always same as the framebuffer size. The 'screen' image size
was the actual rendering region size, and padding was not
considered in the size. The padding is added on the fullscreen
mode.

This fix adds the extra padding values to the 'screen' image size
so that the 'screen' framebuffer will be same size as the monitor
size.

Fixes #693
2018-09-29 21:47:41 +09:00
Hajime Hoshi
fad65f2f5d graphics: Use the viewport size same as the framebuffer size
Fixes #691
2018-09-29 19:53:22 +09:00
Hajime Hoshi
c4abed0a22 opengl: Add coments about #629 2018-09-29 02:20:23 +09:00
Hajime Hoshi
eb0f0e6ced examples: Adjust samplerate not to cause resampling
Fixes #687
2018-09-28 03:55:28 +09:00
Hajime Hoshi
d243957ab1 examples/audioinfiniteloop: Refactoring: Remove magic numbers 2018-09-28 01:52:30 +09:00
Hajime Hoshi
56d8ce9935 examples/audioinfiniteloop: Use NewInfiniteLoopWithIntro
Fixes #656
2018-09-28 01:45:40 +09:00
Hajime Hoshi
1a703ae34b graphics: Extend the range to 4000 in TestImageStretch (#611) 2018-09-28 01:13:25 +09:00
Hajime Hoshi
161eaa1544 docs: Add examples/polygons 2018-09-26 02:32:24 +09:00
Hajime Hoshi
c14e6f3e90 Update gopherwasm version 2018-09-23 02:00:37 +09:00
Hajime Hoshi
17a47f80ef ebitenutil: Fix comments 2018-09-22 05:23:26 +09:00
Hajime Hoshi
ae94bbfe62 Add ryosama to AUTHORS 2018-09-22 05:22:46 +09:00
ryosama
f0d6853631 ebitenutil: Add the DebugPrintAt function (#684)
Fixes #683
2018-09-22 05:21:13 +09:00
Hajime Hoshi
e1347c58ca examples/shapes: Use DrawTriangles for rectangles (#680) 2018-09-15 19:00:57 +09:00
Hajime Hoshi
76ca296cdd examples/shapes: Bug fix: correct calculation 2018-09-15 18:15:16 +09:00
Hajime Hoshi
5587af9d7e examples/shapes: Use DrawTriangles (#680) 2018-09-15 17:20:35 +09:00