Kp
60a99f1ea2
Allow longer mission titles in New Game dialog
2018-06-27 03:34:34 +00:00
Kp
d5bfeb0813
Fix OS X build break
...
Github user bdamm (Rebirth forum user dammfine) reports[1][2][3] a build
failure on OS X, likely caused by clang failing to implement forwarding
constructors fully. The Rebirth fallback to variadic constructor
forwarding is imperfect, and in this case caused a failure. Add an
explicit conversion to disambiguate the ternary expression's type.
[1]: Rebirth forum report: https://forum.dxx-rebirth.com/showthread.php?tid=1055
[2]: Github commit comment: ccc2a288f1
?diff=unified#commitcomment-29322121
[3]: Github issue: https://github.com/dxx-rebirth/dxx-rebirth/issues/391
Reported-by: bdamm <https://github.com/dxx-rebirth/dxx-rebirth/issues/391 >
Fixes: ccc2a288f1
("Simplify HUD_SCALE_X_AR, HUD_SCALE_Y_AR")
2018-06-12 02:53:06 +00:00
Kp
f51b7b6b20
Enforce separation of font X/Y scaling
2018-06-08 04:04:05 +00:00
Kp
08446f0ab6
Pass font to gr_string,gr_printf
2018-05-19 23:21:42 +00:00
Kp
a19d4157e2
Prevent reloading cv_font in font.cpp internal functions
...
Callers usually have cv_font already loaded, so pass it down instead of
reloading from memory.
2018-05-19 23:21:42 +00:00
Kp
ca2b1e0cf0
Remove build_colormap_good parameter used
...
`build_colormap_good` only took `used` to clear it. Only one caller
needed it cleared. Move the clear into that caller. Remove the
parameter from all calls.
2018-03-08 04:21:18 +00:00
Kp
b6e2205b9f
Simplify palette color tracking
...
Callers only care whether a color is used, not how often it is used.
2018-03-08 04:21:18 +00:00
Kp
131c1b9f4d
Add support for PNG screenshots
2018-02-18 00:42:42 +00:00
Kp
88832e3679
Use constexpr integral_constant for various magic numbers
2017-10-14 17:10:30 +00:00
Kp
719de35484
Pass grs_bitmap to gr_pixel
2017-03-11 19:56:23 +00:00
Kp
5541e764cd
Use cached canvas in font.cpp
2017-03-11 19:56:23 +00:00
Kp
c725a6cb88
Pass canvas to gr_init_font
2017-03-11 19:56:22 +00:00
Kp
b390ce2da0
Use cached canvas in gr_string
2017-02-11 21:42:46 +00:00
Kp
05905ced06
Pass font to gr_get_string_wrap
2017-02-11 21:42:44 +00:00
Kp
46be18e7f9
Pass canvas to get_centered_x
2017-02-11 21:42:44 +00:00
Kp
6f81d13c41
Pass canvas to gr_set_curfont
2017-02-11 21:42:38 +00:00
Kp
ae33aaafc1
Pass canvas to gr_set_fontcolor
2017-02-11 21:42:32 +00:00
Kp
764d20d4e1
Make grs_bitmap::bm_flags private
2017-01-15 00:03:13 +00:00
Kp
5da784dbed
Pass canvas to gr_{,u}string
2017-01-08 22:32:00 +00:00
Kp
1ef6b9d5bc
Pass font to gr_get_string_size
2017-01-08 22:31:59 +00:00
Kp
0480ba8030
Pass canvas to gr_string(int,int,const char*,int,int)
2017-01-08 22:31:59 +00:00
Kp
6e8c3b3357
Pass canvas to gr_internal_string_clipped{,_m}
2017-01-08 22:31:59 +00:00
Kp
c291873041
Pass canvas to gr_internal_string_clipped_template
2017-01-08 22:31:59 +00:00
Kp
9dbcbc51ce
Pass canvas to gr_ustring_mono
2017-01-08 22:31:59 +00:00
Kp
83e86707aa
Pass canvas to gr_internal_string0{,m}
2017-01-08 22:31:59 +00:00
Kp
f0ee7af1aa
Pass canvas to gr_internal_string0_template
2017-01-08 22:31:58 +00:00
Kp
f58b66173f
Pass canvas to gr_internal_color_string
2017-01-08 22:31:58 +00:00
Kp
8d1bd87b33
Pass canvas to ogl_internal_string
2017-01-08 22:31:58 +00:00
Kp
0905aefa0a
Pass canvas to gr_rect
2017-01-01 00:45:45 +00:00
Kp
774dedd21d
Pass canvas to gr_bm_pixel
2017-01-01 00:45:44 +00:00
Kp
250bf58e51
Pass canvas to gr_bitmapm
2017-01-01 00:45:43 +00:00
Kp
99f5cfbb10
Pass canvas to ogl_ubitmapm_cs
2016-12-29 03:27:12 +00:00
Kp
ef06aa089a
Pass canvas to gr_pixel
2016-12-29 03:27:09 +00:00
Kp
29c912d2da
Fid -Wold-style-cast warning in SDL-only code
2016-12-29 03:27:08 +00:00
Kp
b3809266a3
Use enumerate in more loops
2016-12-11 01:56:44 +00:00
Chris Taylor
cc3f35649f
Change all occurrences of "Couldn't" to "Could not" for consistency ("Could not" is more common and wins).
...
Not touching TXT_COULDNT because it's stored separately in hog file.
2016-11-13 13:27:18 +08:00
Kp
3081e69536
Pass grs_main_bitmap to gr_init_bitmap_alloc
2016-10-29 23:16:15 +00:00
Kp
88c73c010a
Preserve type information on font-scaled floats
2016-10-15 00:53:15 +00:00
Kp
b2f744f1f8
Remove unnecessary diminish_palette in pcx_write_bitmap
...
The variable is never read after that diminish_palette call, whether in
pcx_write_bitmap or in its sole caller.
2016-10-02 00:34:49 +00:00
Kp
e11ac102a6
Cache bitmap properties in pcx_write_bitmap
2016-10-02 00:34:49 +00:00
Kp
62b58e9890
Move OGL to dxxsconf.h; rename to DXX_USE_OGL
...
Rename symbol OGL to DXX_USE_OGL to show that it is a DXX
symbol, not one inherited from a library. Move it to dxxsconf.h to
shorten the command line.
This is a mostly automated transform, but the changes to SConstruct were
manual.
git grep -lzw OGL -- '*.h' '*.cpp' | xargs -0 sed -i -e 's/\(\s*#\s*if\)def\s*OGL/\1 DXX_USE_OGL/' -e 's/\(\s*#\s*if\)ndef OGL/\1 !DXX_USE_OGL/' -e 's/\(\s*#\s*if !\?\)defined(OGL)/\1DXX_USE_OGL/'
2016-09-24 18:06:11 +00:00
zico
1f144f167c
Addition for 6c6a32ba92
, allowing edge padding for level and polymodel texturees only but disable it for sprites, fonts, hud images, etc. as those looked bad with this form of color bleeding in combination with various texture filtering mechanics.
2016-09-17 15:56:43 +02:00
Kp
5a98beae64
Switch font.cpp to static_cast
2016-09-04 00:02:51 +00:00
zico
b2cad09c26
Added new texture filtering options based on patch of user 'beware'
2016-08-29 20:53:10 +02:00
Kp
6dc16bf468
Remove useless cast in similar/2d/pcx.cpp
2016-08-17 04:44:22 +00:00
Kp
99bbd0cf26
Mark global constants as constexpr
...
s/^const \([^*]*=.*;\)/constexpr \1/
2016-07-23 04:10:42 +00:00
Kp
c636dc4b98
Convert various static const
expressions to constexpr
2016-07-16 16:52:04 +00:00
Kp
a0c2ac469a
Remove useless cast in font.cpp
2016-07-15 03:43:03 +00:00
Kp
59750d3c29
Rewrite declarations of ubyte *
to standard uint8_t *
2016-07-14 01:59:02 +00:00
Kp
b282bea173
Rewrite simple integer casts from C style to static_cast<>
...
This pass only targets commonly used standard types.
s/(\(\s*\(\(un\)\?signed\|int\|char\|short\|long\|float\|double\|s\?size_t\|\(u\?int[[:digit:]]\+_t\)\)\)\s*)\s*(/static_cast<\1>(/g
2016-06-05 01:04:26 +00:00