Commit Graph
24 Commits
Author SHA1 Message Date
Henrik Rydgård 7e5527285d Screen: Unlock the inputLock_ mutex slightly earlier in processFinishDialog
It's really just there to protect the stack.
2020-07-05 11:56:04 +02:00
Unknown W. Brackets 03fc86a147 UI: Return to game settings after restart.
This is more convenient.  Also restarts the game if needed.

Added a way to pass args to Android here as well, and fixed displaying an
error if the shortcut file doesn't exist on Android (like if you deleted
it after creating the shortcut.)
2020-05-09 13:53:42 -07:00
Henrik Rydgård c176c6c114 Also move out the global stuff from view.cpp/h to root.cpp/h 2020-03-08 15:16:32 +01:00
Henrik Rydgård 0698944752 Fixes 2019-10-06 00:20:49 +02:00
Unknown W. Brackets 1205753289 UI: Pass touch/button releases to all screens.
This way, if you go into a menu and release a button, it still gets
noticed.  This also goes for axis centering (and therefore vkeys.)

Also, move TOUCH_RELEASE_ALL to all screen switches.
2019-03-03 17:50:54 -08:00
Henrik Rydgård 8d0285dedd Android: Properly restore screenshots on the Pause screen on task switching away and back.
Basically plumbs through DeviceLost/DeviceRestored to view elements and
into ManagedTexture.
2018-03-27 23:11:10 +02:00
Henrik Rydgård 7d0fc9ce65 Rework GL lost-device to work more like Vulkan. Gets rid of gl_lost manager etc. 2017-12-07 15:05:59 +01:00
Unknown W. Brackets 68a5861f60 UI: Send messages to dialog parents by default.
If it has no sendMessage(), it probably still makes sense to send to the
parent (especially cpu change, clear cache, etc.)

This fixes the ability to change CPU cores ingame, and also fixes other
settings which weren't properly clearing caches.
2017-12-02 11:55:04 -08:00
Henrik Rydgård 04515946e6 Comment, minor cleanup 2017-12-01 18:47:01 +01:00
Henrik Rydgård 6147448719 Draw overlays at the proper time in the frame. 2017-05-30 09:36:17 +02:00
Henrik Rydgård 2f5ea23a8a Prevent a deadlock between View::eventMutex_ and ScreenManager::inputMutex_ by locking here so the reverse lock order can't happen. 2017-05-18 14:37:42 +02:00
Henrik Rydgård 79c0d895ce Found a suspicious hang report that makes me think this mutex should be recursive. 2017-05-18 13:29:18 +02:00
Unknown W. Brackets 9c15efaa85 UI: Consider only the lower screen's postRender.
This makes more sense at least than applying one of each...
2017-03-19 15:42:13 -07:00
Unknown W. Brackets a36ecb7065 UI: Track translate/scale/fade transform by screen.
This translates drawing, scissor, and touch to the transform.
2017-03-19 15:42:13 -07:00
Unknown W. Brackets 9e390510df Remove legacy InputState. 2017-03-14 22:07:07 -07:00
Henrik Rydgård 529d84a57b Avoid a crash if trying to do two screen switches at once.
Managed to make this happen while using the UWP File Open dialog - it
lagged and I started another action while it hadn't returned.
2017-03-07 15:33:23 +01:00
Henrik Rydgard 26a2d42731 Big mutex overhaul - remove our custom ones, make them non-recursive where possible 2017-02-28 11:40:29 +01:00
Unknown W. Brackets a52fbfcff7 UI: Lock input while mutating views/screens.
This way we can't get an axis event while switching screens and crash.
2016-09-11 11:26:35 -07:00
Unknown W. Brackets 92d930887f Android: Add both a lost and restore phase.
Lost = delete, restore = create.  Let's stick to never overlapping.

May help #8912.
2016-09-10 21:58:42 -07:00
Henrik Rydgard 5d6d4a08f4 Change approach somewhat to avoid adding drawing code in the screen manager. 2015-11-18 14:18:35 +01:00
Henrik Rydgard 758ec5a027 Avoid clearing the backbuffer before actually doing any rendering to fbo on every frame - instead, clear when stretching the framebuffer into place. May save quite a bit of bandwidth on tiler GPUs with naive GL drivers. 2015-11-18 12:13:35 +01:00
Henrik Rydgård 7979b6378e Remove old UI framework 2015-09-19 10:58:50 +02:00
Unknown W. Brackets dbfc5385c3 Fix line-endings in ui/screen. 2015-09-06 12:29:23 -07:00
Unknown W. Brackets f279c2a3c2 Merge remote repo native into ext/native/. 2015-09-06 12:24:17 -07:00