Kp
e57afde68b
Hoist store in gr_internal_string0_template
2015-05-09 17:39:02 +00:00
Kp
8ac92b098f
Cache variables in gr_internal_string0_template
2015-05-09 17:39:02 +00:00
Kp
bd5573356d
Reduce gr_internal_string0_template variable scope
2015-05-09 17:39:02 +00:00
Kp
4228ed2324
Switch gr_internal_string0_template to count down loop
2015-05-09 17:39:02 +00:00
Kp
6d9de0d177
Use partial_range for font width
2015-05-09 17:39:02 +00:00
Kp
d2cded3ad4
Combine gr_internal_string0{,m}
2015-05-09 17:39:01 +00:00
Kp
b1ed5b86e2
Return get_char_width results by value
2015-05-09 17:39:01 +00:00
Kp
21aed0488f
Hoist gr_setcolor in gr_internal_string_clipped_template
2015-05-09 17:39:00 +00:00
Kp
2fc4ca8d5a
Cache variables in gr_internal_string_clipped_template
2015-05-09 17:39:00 +00:00
Kp
bbadf1fe3e
Reduce gr_internal_string_clipped_template variable scope
2015-05-09 17:38:59 +00:00
Kp
9d238af808
Switch gr_internal_string_clipped_template to count down loops
2015-05-09 17:38:59 +00:00
Kp
2d423ca383
Combine gr_internal_string_clipped{_m}
2015-05-09 17:38:59 +00:00
Kp
aea5df067d
Cache locals in get_char_width
2015-05-09 17:38:59 +00:00
Kp
4b0f257698
Pass find_kern_entry grs_font by &
2015-05-09 17:38:59 +00:00
Kp
1017802e48
Combine get_char_width and get_char_width_f as template
2015-05-09 17:38:59 +00:00
Kp
c9ef463a16
Mark gr_message_color_level const
2015-05-09 17:38:59 +00:00
Kp
f668705f20
Use array<> for Computed_colors
2015-04-26 20:15:57 +00:00
Kp
67e5e8c6c1
Remove unused gr_make_blend_table
2015-04-26 20:15:57 +00:00
Kp
ace2235ad8
Remove unused gr_make_cthru_table
2015-04-26 20:15:57 +00:00
Kp
9274e56a41
Simplify gr_find_closest_color exit
2015-04-26 20:15:56 +00:00
Kp
f900d4a5ee
Remove RAIIdmem::operator pointer
...
Mac OS X defines uint_fast32_t to unsigned int, causing ambiguous
overloads between RAIIdmem::operator[](std::size_t) and
RAIIdmem::operator[](int). Adding a disambiguating overload for OS X
breaks Windows. Remove operator pointer and operator[]. Rely on the
inherited operator[] for indexing. Require users to call ->get() to
convert to a simple pointer.
First btb ambiguity reported: https://github.com/dxx-rebirth/dxx-rebirth/pull/34
Second btb ambiguity reported: https://github.com/dxx-rebirth/dxx-rebirth/pull/43
2015-02-17 03:52:59 +00:00
Kp
99a4a0ed62
Capture range_for by-value temporaries as const
...
Modifying a by-value temporary does not affect the underlying container,
so modifying it is almost always a bug. Require use of a by-reference
capture when modification is desired.
sed -i -e 's/range_for\s*(\s*\(const\s\+\)\?auto\s\+\([[:alpha:]_]\)/range_for (const auto \2/g'
2015-02-05 03:03:49 +00:00
Kp
93589368c9
Move PHYSFSX_putc to the one file that uses it
2015-01-29 04:27:36 +00:00
Kp
ff4a0ccd70
Fix RAIIdmem array usage
...
Some RAIIdmem instances managed a T[], but were declared to manage a T.
2015-01-28 03:42:53 +00:00
Kp
49bf64c9b6
Use range_for in pcx_encode_line
2015-01-20 02:46:42 +00:00
Kp
f7815810e8
Use RAIIPHYSFS_File to manage PHYSFS_File
...
Fixes a few leaks on error paths.
2015-01-17 18:31:42 +00:00
Kp
68d705a85a
Use bool conversion to test PHYSFS_File pointer
2015-01-17 18:31:42 +00:00
Kp
6dc36deb74
Pass get_font_total_width arg by &
2014-12-02 03:35:01 +00:00
Kp
c89e3b7452
Pass gr_bitmapm arg as &
2014-12-02 03:35:01 +00:00
Kp
95539512d5
Pass pcx_read_bitmap arg by &
2014-12-02 03:35:01 +00:00
Kp
5eddc2c197
Make bitmap bm_data const where easy
2014-12-02 03:24:38 +00:00
Kp
0e63b3c300
Pass pcx_encode_line input as const
2014-11-30 22:09:22 +00:00
Kp
2697918223
Pass gr_bm_pixel arg by &
2014-11-30 22:09:22 +00:00
Kp
26f4aaa51b
Pass gr_set_transparent arg by &
2014-11-30 22:09:21 +00:00
Kp
efa7566821
Pass colormap as array<>
2014-11-30 22:09:21 +00:00
Kp
ef539be1ab
Pass gr_init_bitmap_data arg by &
2014-11-30 22:09:21 +00:00
Kp
f6dde1c593
Pass gr_init_bitmap_alloc arg by &
2014-11-30 22:09:21 +00:00
Kp
53ce29e789
Pass gr_init_bitmap arg by &
2014-11-30 22:09:20 +00:00
Kp
97332b848c
Pass gr_free_bitmap_data arg by &
2014-11-30 22:09:20 +00:00
Kp
a86313e746
Pass ogl_init_texture arg by &
2014-11-30 22:09:19 +00:00
Kp
166f15617d
Pass ogl_ubitmapm_cs arg by &
2014-11-30 22:09:18 +00:00
Kp
2e59c6f80a
Improve loops in font handling
2014-11-25 04:03:13 +00:00
Kp
841e037e15
Pass ogl_loadbmtexture_f arg by &
2014-11-13 03:42:41 +00:00
Kp
3bb04d0d07
Clear unowned font pointer when font is freed
2014-10-01 02:14:41 +00:00
Kp
55b0dea7c6
Propagate for variables in similar/2d/font.cpp
2014-09-26 02:42:12 +00:00
Kp
703f60ac3f
Fix -Wtype-limits warnings
2014-09-21 21:41:55 +00:00
Kp
94550355a8
Use make_unique instead of bare new
2014-08-24 18:28:09 +00:00
Kp
cb352968b8
Fix !OGL build in gr_internal_color_string
2014-08-08 02:52:56 +00:00
Kp
b276590998
Change gr_fade_table to array<array<>>
2014-08-08 02:50:27 +00:00
Kp
f47aa29cd9
Use color_t for color values
2014-08-08 02:07:47 +00:00