Kp
b36d95dccd
Use generate_n to initialize font chars
2015-10-09 02:46:09 +00:00
Kp
50f672ba34
Reuse computed string length
2015-09-29 02:41:22 +00:00
Kp
0c0c93ca34
Refactor gr_string clipping checks
2015-09-29 02:41:22 +00:00
Kp
d9cef82f81
Allow nullptr for gr_get_string_size
2015-09-29 02:41:22 +00:00
Kp
609e6ca584
Flip direction of bit scan
...
Fixes: b1c112d121
("Fix -Og -Wuninitialized warning in gr_internal_string_clipped_template")
2015-09-24 03:05:16 +00:00
Kp
3c29742698
Flip direction of bit scan
...
Fixes: fc5611dc77
("Fix -Og -Wuninitialized warning in gr_internal_string0_template")
2015-09-24 03:05:16 +00:00
Kp
b1c112d121
Fix -Og -Wuninitialized warning in gr_internal_string_clipped_template
2015-09-13 21:02:19 +00:00
Kp
fc5611dc77
Fix -Og -Wuninitialized warning in gr_internal_string0_template
2015-09-13 21:02:19 +00:00
Kp
c4a8432081
Remove WORDS_NEED_ALIGNMENT memcpy src cast to const uint8_t*
...
The cast provokes a warning on systems that require alignment, so remove
it. memcpy takes const void* input, so the cast is unnecessary.
Reported-by: MattWatt <https://github.com/dxx-rebirth/dxx-rebirth/issues/119 >
2015-09-13 21:02:19 +00:00
Kp
17b1943c5e
Mark various per-file structures as static
2015-08-12 03:11:46 +00:00
Kp
c942d28197
Use accessor for grs_bitmap::bm_type
2015-07-25 23:10:47 +00:00
Kp
78f6dc29a6
Cache font scale Y float
2015-06-13 22:42:20 +00:00
Kp
869d0ffdc5
Optimize gr_get_string_size
...
Cache cv_font.
Defer updating longest_width.
Compute line height once at the end.
2015-06-13 22:42:20 +00:00
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
f7815810e8
Use RAIIPHYSFS_File to manage PHYSFS_File
...
Fixes a few leaks on error paths.
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
5eddc2c197
Make bitmap bm_data const where easy
2014-12-02 03:24:38 +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
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
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
1560dd43e1
Use unique_ptr for font->ft_bitmaps
2014-08-07 03:09:28 +00:00
Kp
fd6a7c218e
Use unique_ptr for font->ft_chars
2014-08-07 03:05:48 +00:00
Kp
fbf1c1f413
Throw on too many fonts open
2014-07-22 23:48:23 +00:00
Kp
c1d184240d
Use unique_ptr to manage fonts
2014-07-22 23:48:23 +00:00