Branch: refs/heads/master
Home: https://github.com/Warzone2100/warzone2100
Commit: cbbf5f2a41b2929280d158035af245d14b0caac3
https://github.com/Warzone2100/warzone2100/commit/cbbf5f2a41b2929280d158035af245d14b0caac3
Author: past-due <[email protected]>
Date: 2018-03-30 (Fri, 30 Mar 2018)
Changed paths:
M lib/ivis_opengl/screen.cpp
Log Message:
-----------
Fix: Screenshots when high-DPI / scaling is enabled
Screenshots must use the viewport pixel dimensions to capture the entire game
screen.
Commit: da20bc5c8fc983f739e4bc25d10a4f13e36103c4
https://github.com/Warzone2100/warzone2100/commit/da20bc5c8fc983f739e4bc25d10a4f13e36103c4
Author: past-due <[email protected]>
Date: 2018-03-30 (Fri, 30 Mar 2018)
Changed paths:
M lib/framework/wzapp.h
M lib/qtgame/main_qt.cpp
M lib/qtgame/wzapp_qt.cpp
M lib/qtgame/wzapp_qt.h
M lib/sdl/main_sdl.cpp
Log Message:
-----------
Add new wzAsyncExecOnMainThread function
As the name implies, it asynchronously executes a function (or lambda, or the
`doExecOnMainThread()` function of a `WZ_MAINTHREADEXEC` subclass) on the main
thread (inside the main event loop).
`wzAsyncExecOnMainThread` can be safely called from any thread to execute code
on the main thread. It handles the mechanics of posting an event to the main
event queue (using thread-safe functionality) that is then processed and
handled in the main event loop.
An example using a lambda is:
```
wzAsyncExecOnMainThread([]
{
debug(LOG_INFO, "This is executed on the main thread");
}
);
```
Commit: 0e199a34afa964c44e2dda731dc934cb0d88e08a
https://github.com/Warzone2100/warzone2100/commit/0e199a34afa964c44e2dda731dc934cb0d88e08a
Author: past-due <[email protected]>
Date: 2018-03-30 (Fri, 30 Mar 2018)
Changed paths:
M lib/ivis_opengl/jpeg_encoder.cpp
Log Message:
-----------
jpeg_encoder: Add `const` to constants
Commit: d0d9dd49fea95af1e261d58df56838befb4c7aaa
https://github.com/Warzone2100/warzone2100/commit/d0d9dd49fea95af1e261d58df56838befb4c7aaa
Author: past-due <[email protected]>
Date: 2018-03-30 (Fri, 30 Mar 2018)
Changed paths:
M lib/ivis_opengl/png_util.cpp
M lib/ivis_opengl/png_util.h
Log Message:
-----------
`iV_saveImage_PNG*()` thread-safety
Remove all calls to the `debug()` macro and instead return an `IMGSaveError`
struct that contains the error text (if any error occurred). The caller is then
responsible for appropriately handling / displaying this error text in a
thread-safe manner.
Commit: 496581ae41c4357e787ff01babcb4b7c5b40f74d
https://github.com/Warzone2100/warzone2100/commit/496581ae41c4357e787ff01babcb4b7c5b40f74d
Author: past-due <[email protected]>
Date: 2018-03-30 (Fri, 30 Mar 2018)
Changed paths:
M lib/ivis_opengl/screen.cpp
Log Message:
-----------
Encode & save screenshot images in a background thread
This helps reduce / eliminate any perceptible delay / frame-skip / freeze when
taking screenshots.
Compare:
https://github.com/Warzone2100/warzone2100/compare/bcfbe04434d7...496581ae41c4------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Warzone2100-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-commits