Tamás Bálint Misius
d8acdfb576
Fix various warnings that had piled up
2023-05-12 19:25:41 +02:00
mniip
65cf8021c9
Reorganize the constructors of non-owning PlaneAdapter
2023-05-04 19:41:47 +02:00
Tamás Bálint Misius
3eb3481fda
Fix local save browser crashing in some cases
...
This also fixes local save thumbnails being resized such that they are just short of filling the space they are supposed to.
Also fix textboxes drawing their borders in the wrong place.
2023-05-01 22:32:31 +02:00
Tamás Bálint Misius
60a7ce1aae
Use _rgb literals where possible
2023-04-30 14:22:56 +02:00
Tamás Bálint Misius
9fbb780728
Fix some deprecation warnings
...
Namely:
- [[deprecated("Use BlendChar")]]
- [[deprecated("Use AddChar")]]
- [[deprecated("Use XorPixel")]]
- [[deprecated("Use AddPixel")]]
- [[deprecated("Use XorLine")]]
- [[deprecated("Use XorDottedRect")]]
- [[deprecated("Use XorImage")]]
- [[deprecated("Use BlendEllipse")]]
- [[deprecated("Use BlendFilledEllipse")]]
- [[deprecated("Use DrawFilledRect (beware off by 1)")]]
2023-04-30 11:27:58 +02:00
Tamás Bálint Misius
f5cbc30d85
Fix some deprecation warnings
...
Namely:
- [[deprecated("Use BlendTextOutline")]]
- [[deprecated("Use BlendText")]]
- [[deprecated("Use BlendImage")]]
- [[deprecated("Use BlendImage")]]
- [[deprecated("Use TextSize().X - 1 (yes this is very bad code eww)")]]
2023-04-29 15:50:34 +02:00
Tamás Bálint Misius
8f10210c77
Fix various unintended layout changes since 97.0
...
Also fix a few unused variable warnings.
2023-04-29 13:18:32 +02:00
catsoften
a715f5d71a
Use RGB for constants and gradients, other misc changes
2023-04-16 22:13:39 +02:00
catsoften
bc085705a8
Remove deprecated PIXPACK/RGB/R/G/B functions
2023-04-16 22:13:39 +02:00
mniip
aa2fa9ed8c
Remove Graphics::SetClipRect
2023-04-12 19:24:54 +02:00
mniip
9b9b0b794a
Remove Graphics::vid, Graphics::textwidthx, Graphics::textsize
2023-04-12 19:21:37 +02:00
mniip
e1d230f814
New text width ops
2023-04-10 23:54:46 +02:00
mniip
4b70eeab55
Refactor PNG and working with alpha
2023-04-05 21:30:24 +02:00
mniip
b26a1b4a88
VideoBuffer pointer correctness
2023-04-05 14:52:20 +02:00
mniip
50bfa7cd5e
Remove unused VideoBuffer code
2023-04-05 14:16:25 +02:00
mniip
7f84887f6d
Refactor things referencing VideoBuffer internals
2023-04-05 02:30:05 +02:00
mniip
b56d3cf611
Fix return values in VideoBuffer::*Character
2023-04-05 02:30:05 +02:00
mniip
e5af4dab68
Refactor resize-related code
2023-04-05 02:30:05 +02:00
mniip
caab738184
Refactor raster draw methods
2023-04-05 02:29:35 +02:00
mniip
e93db9c06a
RasterDrawMethods CRTP, PlaneAdapters in VideoBuffer, Graphics, and Renderer
2023-04-05 02:29:35 +02:00
Tamás Bálint Misius
159d0eb4b7
Group platform files into their own directory
2023-01-27 17:31:40 +01:00
Tamás Bálint Misius
4f0c365e05
Preprocessor purge round 19: Split and minimize usage of Config.h
...
Also mostly banish it from other headers, and shuffle standard header includes to minimize cross-contamination between headers.
2023-01-27 09:27:32 +01:00
Tamás Bálint Misius
163203b321
Preprocessor purge round 17: easy parts of WIN, LIN, MACOSX, AND
2023-01-27 09:26:41 +01:00
Tamás Bálint Misius
f7478422a4
Preprocessor purge round 16: DEBUG
2023-01-27 09:26:40 +01:00
Tamás Bálint Misius
9542f98b82
Preprocessor purge round 7: Config.template.h
2023-01-27 09:26:38 +01:00
Tamás Bálint Misius
6b133aced6
Fix renderer table gradients
...
The unsigned type would overflow when it was asked to represent negative values.
2022-12-27 08:49:32 +01:00
Tamás Bálint Misius
3e3ee8a722
Convert hmap data to gradients
2022-12-25 11:09:08 +01:00
Tamás Bálint Misius
bb6c371aa8
Convert images.cpp to actual images
...
Also remove some dead code.
2022-12-25 11:09:06 +01:00
jacob1
3011e45475
Fix text in some buttons being cut off prematurely
2022-10-31 16:22:34 -04:00
jacob1
8fd6db56d1
Fix string handling in text drawing / width functions
...
Allows passing in null bytes, which allows 0s to be used with \x0F color codes
Also unrelated, fix two warnings in OptionsView.cpp
2022-10-25 22:35:49 -04:00
Tamás Bálint Misius
59354731df
Remove all PTI code, use libpng to load avatars and thumbnails
...
Also write PNGs with libpng, and BMPs with SDL, and have the renderer only generate a large PNG thumbnail, and disable HTTP/2 multiplexing for now so we don't get banned when loading avatars.
simon pls reply to the stupid emails already.
2022-10-23 20:21:05 +02:00
Tamás Bálint Misius
ebb87a17c6
Unbundle bzip2 and jsoncpp, update tpt-libs
...
Also Disallow linking against non-C++ system Lua, unless configuring with -Dworkaround_noncpp_lua=true, add -Dworkaround_elusive_bzip2 and friends, and get rid of the -image_base hack for macos.
2022-10-20 23:15:49 +02:00
Tamás Bálint Misius
715333295b
Add clip rect feature to Graphics and gfx.setClipRect
...
Also retire the separate VideoBuffer in Panel and hiding ToolButtons in the GameView ToolButton panel in favour of clip rects.
2022-10-11 20:47:39 +02:00
Tamás Bálint Misius
f18bd6553f
Remove long defunct OpenGL code paths
2022-10-11 20:11:14 +02:00
Tamás Bálint Misius
6ba5de6034
Crop stamp thumbnails that don't fit even when resized
2022-08-28 07:12:46 +02:00
Tamás Bálint Misius
4b7e85c2fb
Fix a metric ton of MSVC warnings
2021-02-15 21:24:44 +01:00
Tamás Bálint Misius
0832615599
Use versioned tpt-libs
...
Also move bzip2 sources out of their own subproject.
2021-01-03 11:00:45 +01:00
Tamás Bálint Misius
a631ef78e9
Fix buggy text width calculation
2020-11-30 15:26:00 +01:00
Tamás Bálint Misius
4bb85578a8
Fix text wrapping ( fixes #166 )
...
This breaks the syntax highlighting in ConsoleView.
I haven't yet thought of a way to fix that properly,
ideas anyone?
2019-07-19 02:53:54 +02:00
Tamás Bálint Misius
0179cefc78
Flatten include trees
2019-04-20 15:36:11 +02:00
mniip
12e79ea111
Fix compilation on windows
2018-05-09 19:05:39 +03:00
mniip
a121c62c3b
Add some helper methods and rewrite some of the string manipulation code
2018-05-02 01:32:04 +03:00
mniip
833383b121
Move TPT's icons to the (real) Private Use Area of the unicode
2018-05-01 07:03:48 +03:00
mniip
9d927cbd6f
Add an auxiliary font reader class to reduce code repetition
2018-05-01 02:21:34 +03:00
mniip
ff27d69424
Switch from std::string to String/ByteString in most of the code
...
Also switch SimulationData from weird arrays to std::vector
2018-04-30 21:13:24 +03:00
mniip
16acc95621
Enlarge the font by adding 2 pixels above the cap height
2018-04-29 04:08:03 +03:00
jacob1
67bc12de97
Fix issue where TPT was bought by EA
2018-04-01 15:26:13 -04:00
jacob1
40d2850ff7
TPT has now gone free to play! Many elements are unlocked by default, but by using Powdercoins you can unlock new elements and promote your saves to front page!
2018-03-31 22:40:23 -04:00
jacob1
ce054bfc3f
fix misc. errors reported by clang static analyzer
2017-05-06 20:02:23 -04:00
jacob1
dce874484a
fix all the gcc warnings in the element files (except one in PSTN) + all the unused variable warnings
2015-01-10 22:43:33 -05:00