19 Commits

Author SHA1 Message Date
Jaak Ristioja
4a6bcc706e
Use nullptr/NULL instead of 0 for pointers, two fixes for undefined behavior
This commit fixes most -Wzero-as-null-pointer-constant warnings, except in
some places which appear to be vendored 3rd party libraries, e.g. in sdl_ttf.c,
libchdr, physfs and gmock and in 3rd party components therein. Since it might
make more sense to update this 3rd party code to some later versions instead of
fixing the warnings manually, I decided not to enable the C++ compiler flag in
configure.ac at this point.

In two functions with the return type of std::string executed `return 0;`
statements, causing std::string to be constructed from a null pointer. To avoid
undefined behavior these were changed to `return {};`.

Signed-off-by: Jaak Ristioja <jaak@ristioja.ee>
2024-05-09 14:18:10 +03:00
Allofich
9294d450ec SVN r4412
Update copyright.
2021-03-06 21:18:08 +09:00
Emmanuel Gil Peyrot
c0a106535e Replace Bit32u with uint32_t 2020-09-28 17:14:35 +02:00
Emmanuel Gil Peyrot
a431d81213 Replace Bit16u with uint16_t 2020-09-28 17:14:35 +02:00
Emmanuel Gil Peyrot
35f38f3ebe Replace Bit8u with uint8_t 2020-09-28 17:14:35 +02:00
rderooy
be6b40a3ce Update (c) year and FSF address 2020-06-25 09:31:36 +02:00
Jonathan Campbell
a182f241f5 Render scalers: Add Normal2x versions of DW (double width) and DH (double height) scalers so the user can at least force 2x scaler for VGA 320x200 and 640x200 modes and CGA 640x200 modes. Prior to this addition, force scaler did not work with those CGA/VGA modes 2019-09-30 12:05:33 -07:00
Allofich
80e62edd7c Type-conversion warning fixes 2019-06-30 21:06:24 +09:00
Allofich
d84a812743 SVN r4183 (second half)
Update year
2019-06-03 23:01:41 +09:00
Allofich
05619dd023 SVN r4183 (first half)
Update address of FSF
2019-06-03 22:54:46 +09:00
Jonathan Campbell
8ff5b081cf SDL1 Mac OS X: Add alternate version of interp_w* macros used by HQ2X/HQ3X/SAI render scalers that corrects integer overflow responsible for trashing the upper 8 bits of the RGBA color. On Mac OS X SDL1 builds the upper 8 bits hold the blue channel. Without this correction, the screen comes out yellowish (missing blue). In all other cases the original code (with integer overflow trashing the upper 8 bits) is perfectly fine because the 8 bits trash hold the unused alpha channel. 2019-04-05 14:34:32 -07:00
frank-deng
d42722b1bd Add gray2x scaler for grayscale effect 2019-04-05 21:49:17 +08:00
frank-deng
e15e61da99 Try to apply scan2x and tv2x filter to 640x200 mode 2019-04-03 11:34:02 +08:00
frank-deng
36d5420376 Add new scalers for CGA 2019-04-03 00:34:04 +08:00
Jonathan Campbell
ea06f030cb Revert "continue"
This reverts commit bf7e9d2725c9f08bb39a52e96bf4ed10a163a12b.
2018-12-04 00:17:17 -08:00
Jonathan Campbell
bf7e9d2725 continue 2018-12-03 23:56:31 -08:00
Jonathan Campbell
ffbad0b2b3 svn mainline r3878:
Year update.
2015-01-25 21:13:25 -08:00
Jonathan Campbell
21614b8c3f toss out my copy, integrate tawoongs's daum branch code into mine,
remove what won't compile, begin work.
2013-10-14 05:07:26 -07:00
root
f331824031 port from svn 2013-07-07 20:39:49 -07:00