Alibek Omarov
fe0da74e75
engine: fix build with tests on
2021-09-30 15:58:32 +03:00
Alibek Omarov
91ee9bd32a
engine: merge tests for imagelib
2021-06-20 20:26:22 +03:00
Alibek Omarov
9c8059ea96
engine: imagelib: add BGRA saving for PNG
...
Fix incorrect output, when input format has alpha but flags don't
have set IMAGE_HAS_ALPHA.
Flags are meant to control output format, but input format may be arbitrary,
as usually given by video driver(screenshots, etc)
2021-03-28 00:34:42 +03:00
Gleb Mazovetskiy
5e0a0765ce
Trim all trailing whitespace
...
The `.editorconfig` file in this repo is configured to trim all trailing
whitespace regardless of whether the line is modified.
Trims all trailing whitespace in the repository to make the codebase easier
to work with in editors that respect `.editorconfig`.
`git blame` becomes less useful on these lines but it already isn't very useful.
Commands:
```
find . -type f -name '*.h' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
find . -type f -name '*.c' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
```
2021-01-04 20:55:10 +03:00
Alibek Omarov
61fe9fd1fe
engine: fix some left shifts on signed integers
2021-01-02 05:01:51 +03:00
Andrey Akhmichin
c53985c0bc
engine: common: imagelib: img_tga.c: refactor Targa encoder.
2020-11-18 18:54:25 +05:00
Andrey Akhmichin
e69956c9ea
engine: common: imagelib: img_png.c: set IMAGE_HAS_ALPHA flag only for RGBA images.
2020-07-22 14:37:40 +03:00
Alibek Omarov
0db1a7743d
engine: try to fix -Wmaybe-uninitialized that may be enabled with -Wuninitialized. Diagnostic is prone to false-positives, as compiler don't have enough data for this
2020-05-12 02:00:34 +03:00
Alibek Omarov
a641488b98
engine: imagelib: img_bmp: add paranoid checks for estimated file size to not exceed real buffer. Needs proper testing.
2020-05-11 03:02:13 +03:00
Alibek Omarov
46b0590e4e
engine: imagelib: refactor to use stdint.h definitions, use spaces for alignment instead of tabs
2020-05-11 02:28:04 +03:00
lewa_j
deb7591d1e
Fix SaveBMP
2020-04-25 21:19:58 +03:00
Alibek Omarov
3c8ce640c4
Merge neko/mathlib into master
2020-03-04 05:38:30 +03:00
Andrey Akhmichin
248c8a745c
engine: common: imagelib: split imagelib.h.
2020-03-03 05:03:15 +05:00
Alibek Omarov
7c47bfd0db
Merge pull request #122 from nekonomicon/palette
...
engine: common: imagelib: use rgba_t as RGBA palette type.
2020-03-02 21:44:32 +03:00
Andrey Akhmichin
e96ea719d5
engine: common: imagelib: use rgba_t as RGBA palette type.
2020-03-02 15:07:54 +05:00
mittorn
3ce16227ba
Merge pull request #123 from nekonomicon/tga
...
engine: common: imagelib: img_tga.c: check pixel type before buffer allocation.
2020-02-18 03:52:09 +07:00
nillerusr
4021d7bf5c
imagelib: fix unaligned access
2020-02-17 23:25:39 +03:00
Andrey Akhmichin
e3b547c8a9
public: rename mathlib to xash3d_mathlib.
2020-02-12 14:32:26 +05:00
Andrey Akhmichin
01e2ea24da
engine: common: imagelib: img_png.c: add a missing return statement.
2020-02-11 17:06:41 +03:00
Andrey Akhmichin
f5783ae1df
engine: common: imagelib: img_tga.c: check pixel type before buffer allocation.
2020-02-11 15:39:05 +05:00
mittorn
2b90790071
network: add stub for systems without BSD sockets, WATTCP support
2020-02-08 23:15:40 +07:00
Alibek Omarov
0fe18ae6dc
engine: fix -Wmaybe-uninitialized
2019-12-24 02:47:51 +03:00
Alibek Omarov
e11a08064d
engine: fix implicit-fallthrough, uninitialized, enum-conversation compiler diagnostics
2019-12-23 06:48:17 +03:00
Alibek Omarov
9421457b3a
engine: big refactoring commit, instead of using platform-specific platform-specific macros, use appropriate macros set by public/build.h
2019-11-24 03:52:08 +03:00
Alibek Omarov
1decb1c7fb
xash3d-fwgs: append missing new line at the end of file
2019-10-27 22:29:03 +03:00
iZarif
bf8b87c29d
engine: client/common: fix a few more format warnings
2019-10-22 17:56:08 +03:00
mittorn
9a1414505a
imagelib: support for 16-bit transparent tga
2019-09-27 02:12:35 +07:00
Alibek Omarov
8bb6aa2c51
engine: don't include windows headers, as they globally included by port.h already
2019-08-09 02:46:29 +03:00
Alibek Omarov
505392c2f8
imagelib: png: include correct winsock
2019-08-09 02:35:53 +03:00
Alibek Omarov
2f8fec6b70
Remove trailing spaces, convert mistakenly put spaces to tabs. The most useful commit ever.
2019-07-19 20:23:08 +03:00
Alibek Omarov
b539ed5a3d
engine: remove write_to_clipboard, as there was no way to enable it for a long time and no one even asked for this
2019-07-19 17:24:25 +03:00
Alibek Omarov
bcb4c9a722
Merge remote-tracking branch 'nekonomicon/png'
2019-06-29 20:41:53 +03:00
Night Owl
4eee187f1b
engine: common: imagelib: add simple decoder/encoder for 8-bit RGB/RGBA PNG images.
2019-06-22 16:06:44 +05:00
Alibek Omarov
f2c927906f
Merge 4511 update
2019-06-17 07:36:46 +03:00
Alibek Omarov
b16529cc65
Apply 4511 update
2019-06-17 07:05:36 +03:00
Alibek Omarov
6f2016db06
engine: imagelib: bmp: fix unaligned access
2019-05-28 03:55:22 +03:00
Alibek Omarov
b797e0af1a
Merge 4483 update
2019-05-25 02:44:24 +03:00
Alibek Omarov
c215b89923
Apply 4483 update
2019-05-19 15:01:23 +03:00
Alibek Omarov
fe14a360b4
engine: fix fs_offset_t/size_t conversion, const qualifiers
2019-05-02 19:12:23 +03:00
Alibek Omarov
234507b7f1
ref: fix all undefined references
2019-03-11 17:37:58 +03:00
Alibek Omarov
99bd7c81da
ref: render code moved out of engine, doesn't compile, first API prototype
2019-02-18 21:25:26 +03:00
Alibek Omarov
b8c4c31e02
Merge 4344 update
2018-12-30 01:51:02 +03:00
Alibek Omarov
bf07a9e61e
Apply 4344 update
2018-12-30 01:43:07 +03:00
mittorn
298393b653
Initial amd64 port
2018-12-05 23:57:05 +07:00
Alibek Omarov
a03aa3ddb3
Merge 4281 update
2018-10-28 00:39:29 +03:00
Alibek Omarov
aae3510763
Apply 4281 update
2018-10-27 23:32:09 +03:00
mittorn
491188a0f3
Merge branch 'original'
2018-10-04 14:27:14 +07:00
mittorn
5c738b3402
Apply 4253 update
2018-10-04 13:08:48 +07:00
Alibek Omarov
f26ac52102
Merge 4140 update
2018-06-11 14:04:50 +03:00
Alibek Omarov
814b7eda07
Apply 4140 update
2018-06-09 01:28:35 +03:00