Hleb Valoshka
2cb9da1085
[win32] Convert decimal point & thousands separator to UTF-8
2022-01-25 23:28:17 +03:00
Hleb Valoshka
34d18bb316
Add missing include to fix selfshadowing
...
Fixes : #1330
2022-01-23 11:39:33 +03:00
Hleb Valoshka
f969b37c3e
Refactor font handling code
...
* Add cache for loaded fonts
* Replace `const std::string &` with `std::string_view` in print
* Remove static load method
* Reformat with clang-format
* Return bool from celestiacore::set*Font
2022-01-20 12:10:30 +03:00
Andrew Tribick
3c9334ece9
[qt] Do not capture menu bars when taking screenshots
2022-01-18 19:00:54 +01:00
Levin Li
fc561a7927
Add methods for handling HiDPI, scale icons, splash images using StretchBlt
2022-01-16 02:27:25 -08:00
Levin Li
9d1bcf14b3
Enable dpiAwareness in manifest
2022-01-16 02:27:25 -08:00
Andrew Tribick
40ed2011bf
Use qreal to store return value of devicePixelRatioF
2022-01-15 18:13:28 +01:00
Andrew Tribick
7cf1aac419
[qt] Experimental Qt6 support
...
- Switch from legacy QGLWidget to QOpenGLWidget
- [win32] Use a frameless window 1 pixel larger than the monitor instead of a
fullscreen window, in order to avoid issues showing context menus
- Fix a settings bug where window state on the fullscreen transition was not
saved in the MainWindow group.
2022-01-15 18:13:28 +01:00
Levin Li
25cbfabba0
Enable visual styles for Win32 controls
2022-01-14 21:13:55 -08:00
Andrew Tribick
245225dcdf
Fix for SonarScanner out of bound false positive
2022-01-12 21:40:21 +01:00
Andrew Tribick
410f86fc88
Use while loop to fix SonarScanner issue
2022-01-08 21:25:52 +01:00
Andrew Tribick
3f7bd9c13e
Update floating point compilation options
2022-01-08 16:02:52 +01:00
Andrew Tribick
56751882e6
Minor tokenizer fixes
...
- Functions in cctype should be called with unsigned char.
- Use charconv to convert numeric tokens.
2022-01-08 15:44:25 +01:00
Hleb Valoshka
e04ed379a5
[ci] exclude legacy ui from sonar analysis
2022-01-08 17:21:23 +03:00
Hleb Valoshka
849ce6a5c4
[ci] disable dnf invocation as it fails
2022-01-08 17:21:23 +03:00
Hleb Valoshka
98610c9557
[cmake] suppress "deprecated-declarations" warning for gtk ui
2022-01-08 17:21:23 +03:00
Hleb Valoshka
c251dac856
Split greek-letters handling from utf8 and refactor a bit
2022-01-08 17:21:23 +03:00
SevenSpheres
eaae852f8f
Update celestia.cfg
...
add pulsars.stc & plutocharon_locs.ssc
2022-01-07 12:43:30 -07:00
Hleb Valoshka
eb93a24fcc
Fix search for planets around stars with Bayer designations
...
Closes : #1297
The previos code didn't take into account names like "Ups And Ad" and
interpreted them as "Ups And A".
2022-01-05 15:56:34 +03:00
Hleb Valoshka
d0899d29ee
Fix ring shadow shaders for planets with several suns
...
Closes : #1305
Was broken in 32baed9bc
2022-01-05 13:34:51 +03:00
Hleb Valoshka
192359bfa0
[ci] remove ENABLE_DATA from cmake calls
2022-01-04 16:21:52 +03:00
Hleb Valoshka
57c0fe1bde
Update spice submodule and enable it in CI build on arm64
2022-01-04 16:21:52 +03:00
Hleb Valoshka
e4f7df92b8
[ci] run sonar scanner on a self-managed runner
...
* legacy frontends won't be checked, only sdl & qt
2022-01-03 18:30:02 +03:00
Hleb Valoshka
5bf9471674
Silence AstroObject::setIndex() unless debug verbosity
2022-01-02 19:32:15 +03:00
Andrew Tribick
7cdf65659d
Clamp cosine of phase angle to [-1, 1]
2022-01-02 16:03:52 +01:00
Hleb Valoshka
dea8c42eb1
[ci] add a custom job for *.po files
2022-01-01 23:59:32 +03:00
Andrew Tribick
7b762832a4
[qtwin] Fix crash on pasting screenshots
...
Workaround for an issue with the Windows Qt version where Celestia crashes
when a copied screenshot is pasted into another application. This appears to
be because the data sent to the clipboard still contains a reference to the
data in the destructed Image object, despite the Qt documentation stating that
QClipboard::setImage causes the clipboard to take ownership of the data. This
does not occur if the QImage manages its own buffer.
2022-01-01 21:27:10 +01:00
Andrew Tribick
4a9403ecf5
Fix galaxy hue calculation
2022-01-01 12:38:54 +01:00
Andrew Tribick
33116aad4a
Backport C++20 numbers header
2021-12-31 17:25:39 +01:00
Andrew Tribick
e8ca56f575
Remove unused code and apply bugfixes to SphereMesh
...
- Remove unused overload of displace
- Fix some bugs retrieving wrong data element
- Use Eigen::Map to simplify vector code
- Remove dispmap.h/dispmap.cpp
2021-12-31 11:12:53 +01:00
Andrew Tribick
727e4c999b
Remove unreachable returns
2021-12-30 22:33:18 +01:00
Andrew Tribick
f0e6ff3673
Refactor bigfix and univcoord
2021-12-30 21:30:18 +01:00
Andrew Tribick
ee74d05f92
Clamp universal position to within 2^62 microlightyears on x, y and z axes
2021-12-30 21:30:18 +01:00
Andrew Tribick
c40c04f595
Remove unused memorypool sources
2021-12-30 21:23:58 +01:00
Andrew Tribick
fb45b8461d
Enforce lower bound on rings/slices for spheremesh
...
- Avoid potential division-by-zero errors if nSlices=0
- Remove unused SphereMesh constructors
- Un-deprecate the cms format
2021-12-30 13:29:29 +01:00
Andrew Tribick
fd9ea94377
Add managers for galaxy/globular details to avoid destructor issues on exit
2021-12-30 11:58:44 +01:00
Andrew Tribick
c632aea62d
Use std::uint8_t in procedural texture code
2021-12-30 11:58:44 +01:00
Andrew Tribick
85e5bae406
Additional globular refactoring
...
- Store vector directly in GlobularForm
- Use local statics
2021-12-30 11:58:44 +01:00
Andrew Tribick
657f127a66
Refactor globular: namespace management
2021-12-30 11:58:44 +01:00
Andrew Tribick
e8782ceeb0
Reduce indirection, re-use custom templates if possible
2021-12-30 11:58:44 +01:00
Andrew Tribick
31b67185dd
Refactor galaxy: namespace management
2021-12-30 11:58:44 +01:00
Andrew Tribick
73176faeb4
Fix parameter order in 'Error loading star X for asterism Y'
2021-12-30 11:58:22 +01:00
Andrew Tribick
f15443bf63
Remove WIP HDR implementation
2021-12-29 14:48:36 +01:00
Andrew Tribick
5678539e05
Remove unused particle system code
2021-12-29 14:48:36 +01:00
Andrew Tribick
86f2aab284
Remove glcontext.*
2021-12-29 14:48:36 +01:00
Andrew Tribick
b683c7801d
Return std::string_view from Tokenizer::getStringValue to reduce copying
2021-12-29 13:08:54 +01:00
Andrew Tribick
2a533b20d5
Remove getNameValue from tokenizer (duplicate functionality of getStringValue)
2021-12-29 13:08:54 +01:00
Andrew Tribick
1d77f75963
Remove celmath::clamp in favour of std::clamp
2021-12-29 12:32:16 +01:00
Andrew Tribick
657604c69a
Replace invalid use of memcpy in curveplot
...
- Vertex is not trivially copyable, therefore memcpy is not allowed.
- Put local classes and functions into unnamed namespace.
- Remove using namespace std, using namespace Eigen.
- Prefer C++-style casts.
- Use C++17 std::clamp where appropriate.
- Use logger for debugging
2021-12-28 23:04:50 +01:00
Andrew Tribick
2069f1ce68
Use <iosfwd> instead of <iostream> in logger.h
2021-12-28 22:36:10 +01:00