bvschaik / julius

An open source re-implementation of Caesar III
GNU Affero General Public License v3.0
2.79k stars 311 forks source link

HiDPI support #435

Closed hathlife closed 4 years ago

hathlife commented 4 years ago

Describe your improvement here. Keep in mind that UI improvements which require new texts will most likely be declined because we can only work with the original text files. Also, large UI changes will not be accepted. It seems that twos thing can be dealt with SDL2,like AOE2DE:

crudelios commented 4 years ago

There is scaling support by adding --display-scale X, where X is a value between 0.5 and 5.

For zoom, it will be added to Augustus :+1:

hathlife commented 4 years ago

There is scaling support by adding --display-scale X, where X is a value between 0.5 and 5.

For zoom, it will be added to Augustus 👍

It seems that adjusting --display-scale arg just scale the whole screen output, not I really wanted. 2020-05-06 (2)

what I want is the UI scaling, at least, smoother text.

crudelios commented 4 years ago

Since text is based on image files (and not on fonts) and the ui images have a fixed size and the entire ui code is hardcoded into the executable, it's not possible to achieve a true hi-dpi look, short of rewriting both all the images and the entire graphics code for Julius.

So it won't be done.

For camera zoom in/out, as I said, expect that in Augustus in a not too distant future.

bvschaik commented 4 years ago

Like Crudelios said, the text cannot be scaled because they are just images. HiDPI support will only make the entire game smaller, since we simply do not have high-resolution images, nor do we want to create those because of copyright issues. Camera zoom has too much impact on the Julius code, so I decided against it.

crudelios commented 4 years ago

In a related note, camera zoom has been added to Augustus today and will be available on the next release.