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
1f301770d7
Remove always-NULL gr_bitblt_fade_table
2015-07-21 02:57:27 +00:00
Kp
7dd310c8e9
Use helper macro for reading/writing short in rle
2015-07-14 02:42:12 +00:00
Kp
3905f1a668
Enable -Wcast-qual
2015-06-13 22:42:21 +00:00
Kp
6dccb811b7
Pass unsigned x/y to gr_pixel
2015-05-09 17:39:00 +00:00
Kp
b8f9c1a1de
Expand EXCHG
2015-04-02 02:36:54 +00:00
Kp
916cf69e37
Remove unused gr_uline return value
2015-04-02 02:36:54 +00:00
Kp
ca123b6cde
Remove unused gr_line return value
2015-04-02 02:36:54 +00:00
Kp
6e96ff3e00
Fix ambiguous use of INTEL_SHORT/INTEL_INT
2015-04-02 02:36:52 +00:00
Kp
fca381727c
Add wrappers for screen width/height
2015-03-22 18:49:21 +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
0f74a66063
Use uint_fast32_t for gr_box
2015-02-14 22:48:30 +00:00
Kp
dc8b88eed4
Convert various loops to range_for
2015-02-14 22:48:27 +00:00
Kp
600f1417ff
Reorder gr_ubox0 stores to eliminate multiplication
2015-02-05 03:03:49 +00:00
Kp
4c8f3a47b5
Convert frequently used casts to C++ casts
2015-02-05 03:03:49 +00:00
Kp
07501d2b94
Simplify gr_bitmap_rle_compress setting BM_FLAG_RLE_BIG
2015-01-29 04:27:37 +00:00
Kp
1985f7f295
Pass rle_swap_0_255 arg by &
2015-01-29 04:27:37 +00:00
Kp
27aeb6764d
Pass rle_remap arg by &
2015-01-29 04:27:37 +00:00
Kp
912253ab00
Pass gr_bitmap_rle_compress arg by &
2015-01-29 04:27:37 +00:00
Kp
26544682e0
Cache COLOR
2015-01-29 04:27:37 +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
06142a6c80
Optimize gr_remap_bitmap_good integer handling
2015-01-25 05:32:45 +00:00
Kp
fa73ca8a17
Pass gr_remap_bitmap_good arg by &
2015-01-25 05:32:45 +00:00
Kp
f2797ddf1e
Pass gr_init_canvas arg by &
2015-01-17 18:31:40 +00:00
Kp
fccb6814f8
Pass gr_create_sub_canvas arg by &
2015-01-17 18:31:40 +00:00
Kp
c731558a94
Pass gr_init_sub_canvas arg by &
2015-01-17 18:31:40 +00:00
Kp
af16e4a2a3
Tighten grs_bitmap resource rules
2015-01-17 18:31:40 +00:00
Kp
20edba1fd1
Use gr_init_canvas in gr_create_canvas
2015-01-17 04:31:17 +00:00
Kp
266814e975
Inline gr_set_current_canvas with constant inputs
2015-01-12 00:26:03 +00:00
Kp
bd6b9489c1
Fix off-by-one end causing memory corruption
2014-12-08 00:41:03 +00:00
Kp
bb8445f70c
Fix some -Wsign-compare warnings
2014-12-05 04:11:37 +00:00
Kp
0dfbe46318
Rewrite scale_line to use std::fill
...
Eliminate inline byte-by-byte store.
2014-12-05 04:11:37 +00:00
Kp
97718e9b9c
Refactor gr_ubitmap012
2014-12-05 04:11:37 +00:00
Kp
58c9c98124
Rewrite gr_linear_rep_movsdm with std::transform
...
Eliminate deprecated register.
2014-12-05 04:11:37 +00:00
Kp
3097a5b247
Pass gr_bitblt_find_transparent_area arg by &
2014-12-02 03:35:01 +00:00
Kp
c990701d87
Pass show_fullscr 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
355df375a0
Pass gr_bitmap arg as &
2014-12-02 03:35:01 +00:00
Kp
5955bac683
Pass gr_bitmap_scale_to arg by &
2014-12-02 03:35:01 +00:00
Kp
6334327ccc
Remove unused gr_bm_bitblt
2014-12-02 03:35:01 +00:00
Kp
0375876a08
Pass gr_bm_ubitbltm arg by &
2014-12-02 03:35:01 +00:00
Kp
25948a4b96
Pass gr_bm_ubitblt00m arg by &
2014-12-02 03:35:01 +00:00
Kp
31d6b151da
Pass gr_bm_ubitblt arg by &
2014-12-02 03:35:01 +00:00
Kp
50e24ee0ef
Pass gr_bm_ubitblt00 arg by &
2014-12-02 03:35:01 +00:00
Kp
15f9d5d3f5
Pass ogl_ubitblt arg by &
2014-12-02 03:35:01 +00:00
Kp
7031c809fc
Pass gr_ubitmapm 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
ea535b0e38
Pass gr_rle_expand_scanline arg as const
2014-11-30 22:09:22 +00:00
Kp
706782b275
Pass gr_rle_getsize arg as const
2014-11-30 22:09:22 +00:00