81007 Commits

Author SHA1 Message Date
doofus-01
e8d451bbd5
1.17 dwarf sprite cleanup (#6902)
* fill semitransparent pixels

* sprite palette cleanup
2022-07-23 21:30:49 -07:00
doofus-01
346e74697f
1.17 drake sprite cleanup (#6901)
* fill semitransparent pixels

* drake sprite palette cleanup
2022-07-23 18:33:14 -07:00
Nils Kneuper
d9663c6fe5 updated Finnish translation 2022-07-23 12:46:45 +02:00
Nils Kneuper
f6f81c78dd updated British English translation 2022-07-23 12:46:01 +02:00
Nils Kneuper
fb021524af updated Arabic translation 2022-07-23 12:44:57 +02:00
Tommy
0b97284f07 Correctly invalidate the previous frame when displaying leadership
Fixes #3996.

I applied the fix by jostephd. The fix looks good, and works.
2022-07-23 15:24:53 +12:00
loonycyborg
720094361d
servers: avoid exception on write error 2022-07-22 18:23:27 +03:00
loonycyborg
b346b3911b
Remove dead code 2022-07-22 18:14:54 +03:00
Tommy
28f2637a06 display: simplify map screenshot procedure 2022-07-22 15:07:59 +12:00
Tommy
49e75f0e89 Fix hex invalidation code for animations when zoomed
It did not match the actual animation placement... the code was both
duplicated and wrong. I guess one part got updated and the other part
didn't.

It still needs to be deduplicated...
2022-07-22 15:07:59 +12:00
Tommy
f6763be08b top_level_drawable: Implement copy and move constructors 2022-07-22 15:07:59 +12:00
Tommy
afd6baa7cf Hardware unit HP/XP bars
This was the last critical hardware acceleration task.
Pretty much everything should be acceptably accelerated now.
2022-07-22 15:07:59 +12:00
Tommy
a4ebf83be3 Remove screen size code from MP lobby prefs dialog callback
It seems to be unnecessary, and left over from before GUI2 migration.
2022-07-22 15:07:59 +12:00
Tommy
9362698f1a font/sdl_ttf_compat: allow pango_render_text to not clip the text
This is used by widgets/button to determine the ideal button size.
2022-07-22 15:07:59 +12:00
Tommy
8295c55d1f GUI1: Remove TODOs from widgets/button as it appears to work fine 2022-07-22 15:07:59 +12:00
Tommy
fa3315b520 GUI1: Remove CVideo from widget constructor 2022-07-22 15:07:59 +12:00
Tommy
1fea22a51d events::sdl_handler: Make handle_window_event optional
Very little actually uses this.
2022-07-22 15:07:59 +12:00
Tommy
6a2ea6ed3e display: Slightly optimize movement defense % text drawing 2022-07-22 15:07:59 +12:00
Tommy
3bf2339c07 display: Stop using surfaces for tod_hex_mask
ToD mask fade is probably better now, but needs testing as it isn't
used in mainline.
2022-07-22 15:07:59 +12:00
Tommy
3835f9580b Fix some poor indentation, and tidy some TODOs 2022-07-22 15:07:59 +12:00
Discontinuum
6991fcf5a8 Fix the description of concealment
It affects all villages, water villages included
2022-07-21 18:21:15 +02:00
Tommy
157c8d066a display: Improve terrain code text background performance
Appropriately blits a single-pixel texture using recently added
features, in stead of creating a new surface and texture each time.
2022-07-21 12:16:04 +12:00
Tommy
482bc22f80 Fix the --render-image commandline option
It now implies (and is not denied by) --nogui.
2022-07-21 12:16:04 +12:00
Tommy
0c381e74f0 sdl/texture: Properly set blend mode on textures created from surface 2022-07-21 12:16:04 +12:00
Tommy
0692c4958d sdl/point: Add elementwise multiplication and division operators 2022-07-21 12:16:04 +12:00
Tommy
d58829e129 sdl/rect: Add pos() and size() returning points {x,y} and {w,h} 2022-07-21 12:16:04 +12:00
Tommy
2da7515722 sdl/window: add set_logical_size(point)
Also changed get_logical_size to return point not SDL_Point.
2022-07-21 12:16:04 +12:00
Tommy
eae182ba80 draw_manager: Make TLD removal more robust
TLDs can now be deregistered or raised during TLD iteration.

Also removed an explicit deregister of the loading screen, which
appears to no longer be necessary.
2022-07-21 12:16:04 +12:00
Tommy
8633120f08 Add update() function to top_level_drawable, run before layout()
This is mostly good for updating things that may change layout,
such as motion animations. However it can be useful for other things.
2022-07-21 12:16:04 +12:00
Tommy
5e54f2eca3 draw_manager: Just raise TLD on redundant reregistration 2022-07-21 12:16:04 +12:00
Tommy
afa2abb667 display: Allow using chained setters to manage blit helpers
For example `drawing_buffer_add(...).set_alpha(128).set_hflip(true);`
2022-07-21 12:16:04 +12:00
Tommy
3b12a5043f sdl/rect: Add shift(point) to shift a rect to a relative position 2022-07-21 12:16:04 +12:00
Tommy
163c6e3949 Add a single-white-pixel PNG, for hardware stretching
It can be used to draw rectangles and lines, particularly when
passed via drawing_buffer_add as this only supports rendering
textures, not other drawing operations.

It can be loaded as "misc/single-pixel.png".
2022-07-21 12:16:04 +12:00
Pentarctagon
62d4bd001a
3942 was reopened. 2022-07-20 09:04:42 -05:00
newfrenchy83
0bfb384887
Update codeblocks project files for gcc11 2022-07-20 11:39:50 +02:00
Tommy
c2ab49b887 Catch a few more missed logging newlines
Mostly with a space before the trailing newline.
2022-07-20 15:20:57 +12:00
Tommy
bd8efdffec Remove some now-unnecessary usages of std::flush 2022-07-20 15:20:57 +12:00
Tommy
9e15bae76c Fix broken unit test
This log definition really shouldn't work. It seems to rely on log
timestamps being globally disabled during tests. However that's what
it was set up to do, so i am not changing it more than necessary.
2022-07-20 15:20:57 +12:00
Tommy
ba24612f73 Remove trailing newlines from multiline log messages 2022-07-20 15:20:57 +12:00
Tommy
a02709e0ff Remove \n from log lines with it as suffix on the final string 2022-07-20 15:20:57 +12:00
Tommy
1fe87c4e24 Remove "<< '\n';" from log lines 2022-07-20 15:20:57 +12:00
Tommy
6ace55e063 Remove << "\n"; from log lines 2022-07-20 15:20:57 +12:00
Tommy
1c25ebdfa2 Remove std::endl from log lines, now that it's added automatically 2022-07-20 15:20:57 +12:00
Tommy
6a1cda1f28 Remove newline from PLAIN_LOG entries, or use STREAMING_LOG 2022-07-20 15:20:57 +12:00
Tommy
63185a9609 log: Automatically add newlines to log entries
I also added a STREAMING_LOG logger, which is equivalent to PLAIN_LOG
except that it does not add the newline at the end.

Other loggers reprint the timestamp every time, so eliding the newline
was never useful for them anyway.
2022-07-20 15:20:57 +12:00
Pentarctagon
78764ccd58
1.17.6+dev 2022-07-19 19:31:18 -05:00
Pentarctagon
ab8fe65b83
1.17.6 1.17.6 2022-07-19 19:30:24 -05:00
Pentarctagon
765681335a
pot-update and regenerate doc files 2022-07-19 19:26:27 -05:00
Celtic Minstrel
306e6b95fc
Fix assertion when opening the gamestate inspector while disabled events haven't been cleaned up (#6884)
Fixes #3257
2022-07-19 13:48:03 -04:00
Luis Miguel Iglesias Sánchez
1ab5abb370
Remove command prefixes on commandline (#6421) 2022-07-19 19:04:34 +02:00