Rubidium
a312a6c1b2
Codechange: make md5sumToString std::string compatible
2023-05-04 23:23:32 +02:00
Rubidium
6a8b4f3e10
Codechange: use fmt::format_to instead of seprintf to fill the PNG metadata
2023-04-28 19:53:03 +02:00
Charles Pigott
b282664242
Codechange: Replace all usages of alloca/AllocaM with more modern/less discouraged alternatives
2023-04-15 16:57:00 +01:00
Rubidium
f001e84e5e
Codechange: use RAII to automatically restore _cur_dpi after use
2023-01-28 20:33:02 +01:00
Rubidium
fe2bcd2a58
Codechange: migrate size related functions to Map structure
2023-01-21 17:11:40 +01:00
Rubidium
bcfe0fb076
Codechange: introduce GetMainWindow() to properly account for nullptr checks
...
Some nullptr checks have been removed as they were not triggered with nullptr
with the null video driver and in dedicated server mode.
2023-01-14 21:15:23 +01:00
Patric Stout
1fb101eabb
Codechange: address CodeQL issue "Multiplication result converted to larger type" ( #10306 )
...
Most are very unlikely to ever be triggered in our codebase; two
stand out: linkgraph and money cheat. Those, potentially, could
wrap earlier than expected.
2023-01-02 20:30:02 +00:00
larryfenn
d738cd235f
Change: Automatic screenshot numbering with a filename ending in '#' ( #9781 )
2022-11-08 11:13:16 +00:00
Artin Alavi
c536bde19e
Fix #8252 : Remove duplicate functionality in screenshot.cpp
2022-10-22 20:51:02 +02:00
Tyler Trahan
08cb5ba2cd
Fix: Don't show screenshot GUI in screenshots ( #9674 )
2021-11-07 17:41:24 +01:00
Loïc Guilloux
08c048e0a1
Fix #9643 , 95386dc
: Incorrect determination of screenshot format ( #9644 )
2021-10-22 16:34:48 +02:00
rubidium42
55a11710a6
Codechange: convert printf DEBUG statements to fmt Debug statements
2021-06-13 12:45:45 +02:00
rubidium42
95386dc2b8
Codechange: move misc settings to std::string
2021-05-13 23:13:17 +02:00
Michael Lutz
1f159f79de
Fix #9147 : Delay making screenshots until the next draw tick as we may not access the video buffer from the game thread.
2021-05-02 17:57:24 +02:00
rubidium42
40528db993
Fix #9152 , Fix #9153 : screenshot command showed error messages when successful
2021-05-01 11:54:41 +02:00
Patric Stout
d0ed656fd1
Change: scale heightmaps we export to highest peak and inform the user of this value
...
Before this commit, it scaled to map-height-limit. Recently this
could also be set to "auto", meaning players don't really know
or care about this value.
This also means that if a player exported a heightmap and wanted
to import it again, looking like the exact same map, he did not
know what value for "highest peak" to use.
2021-03-26 12:22:32 +01:00
Patric Stout
1a1049bc0d
Change: rename setting "max_heightlevel" to "map_height_limit"
...
This better reflects what it is, and hopefully removes a bit of
the confusion people are having what this setting actually does.
Additionally, update the text on the setting to better inform
users what it is doing exactly, so they can make an educated
decision on how to change it.
Next commit will introduce an "auto" value, which should be the
new default. The rename has as added benefit that everyone will
start out on the "auto" value.
2021-03-26 12:22:32 +01:00
Patric Stout
ac5e77ea3b
Feature: allow custom width/height of screenshot via console
...
Reworked how the screenshot command works while keeping it backwards
compatible. It can now more freely understand arguments, and has
the ability to make SC_DEFAULTZOOM screenshots.
2021-03-04 22:23:05 +01:00
Michael Lutz
d6b6775888
Change: Lock the video buffer when drawing inside the game loop to properly account for threaded drawing.
2021-02-22 22:16:07 +01:00
Charles Pigott
9b800a96ed
Codechange: Remove min/max functions in favour of STL variants ( #8502 )
2021-01-08 11:16:18 +01:00
Michael Lutz
dd138fc460
Codechange: Stringify config file paths.
2020-12-27 13:19:25 +01:00
Charles Pigott
860c270c73
Codechange: Replace assert_compile macro with static_assert
2020-12-27 10:55:42 +00:00
TechGeekNZ
a10013dd00
Codechange: Spell 'Viewport' consistently
...
Some places in the codebase misspell 'Viewport' as 'ViewPort' or 'view_port'.
This patch makes everything consistent.
2020-07-27 17:31:29 +01:00
Abdurrahmaan Iqbal
8a655c7fb6
Fix #8232 : 'Huge screenshot' warning being shown incorrectly
2020-06-27 14:19:35 +01:00
TechGeekNZ
3c8d0aa354
Cleanup: Give TakeScreenshot
a more sensible name
2020-06-27 14:19:35 +01:00
TechGeekNZ
ed6f31f601
Cleanup: Remove redundant implementation of TakeScreenshot
2020-06-27 14:19:35 +01:00
Michael Lutz
a49fdb7ebb
Codechange: Store base set related texts in std::strings.
2020-05-21 20:02:34 +02:00
JMcKiern
2158e26b9e
Fix #7950 : Incorrect setup of normal screenshot viewport
2020-01-26 14:48:35 +00:00
Charles Pigott
5b52f25902
Fix e558aa8
: Compiler warning about unused value (and move some variable declarations to where they're used)
2020-01-05 23:31:20 +00:00
TELK
e04ca904a9
Feature: Minimap screenshot
2020-01-04 18:21:38 +01:00
glx
3a14cea068
Codechange: Replace FOR_ALL_COMPANIES with range-based for loops
2019-12-21 20:13:03 +01:00
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
2019-11-10 17:59:20 +00:00
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
2019-04-10 23:22:20 +02:00
Charles Pigott
f5b1115039
Doc: Lots and lots of doxymentation fixes
2018-10-31 12:35:54 +01:00
Charles Pigott
63898f61b0
Codechange: Rearrange struct packing defines and make MinGW use _Pragma pack style
2018-07-19 20:24:17 +02:00
frosch
7979f9a475
(svn r26983) -Fix: Account for max_heightlevel when saving heightmaps.
2014-10-09 19:52:07 +00:00
frosch
ebd2d3ccef
(svn r26525) -Remove: Screenshot format setting from GUI.
2014-04-27 15:13:46 +00:00
rubidium
5b82822c12
(svn r26486) -Codechange: replace a number of snprintfs with seprintf
2014-04-23 21:12:09 +00:00
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-04-23 20:13:33 +00:00
rubidium
2618d960e3
(svn r26209) -Codechange: remove some template magic and simplify some code
2014-01-02 22:41:58 +00:00
rubidium
ef7befdbd8
(svn r25264) -Feature: linkgraph overlay over main viewport (fonsinchen)
2013-05-19 14:49:25 +00:00
planetmaker
c24374f99c
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
2013-01-08 22:46:42 +00:00
frosch
fccf0ac84d
(svn r24805) -Codechange: Refactor determination of screenshot viewport for world screenshots.
2012-12-09 16:53:01 +00:00
frosch
edd9c0553a
(svn r24804) -Add: Separate subdirectory for screenshots.
2012-12-09 16:52:43 +00:00
alberth
2ab7c82b31
(svn r24395) -Doc: Fixed argument references in @param descriptions.
2012-07-10 18:37:54 +00:00
truebrain
e2fea99ba9
(svn r23784) -Revert (r23740): compiling without libpng failed to include a correct header
2012-01-09 23:04:03 +00:00
frosch
45df862fb0
(svn r23775) -Change: Hide the PCX screenshot format from the options window, if a 32bpp blitter is used.
2012-01-08 16:58:10 +00:00
rubidium
6d6be50ae0
(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files
2012-01-03 21:32:51 +00:00
rubidium
8b223f0274
(svn r23695) -Fix/Feature [FS#4916]: make a distinction between fully zoomed in and default zoomed in screenshots
2011-12-31 14:56:39 +00:00
rubidium
58423b26d1
(svn r23474) -Codechange: move the declaration error related functions to error.h
2011-12-10 13:54:10 +00:00