Kp
166f15617d
Pass ogl_ubitmapm_cs arg by &
2014-11-30 22:09:18 +00:00
Kp
4cadc18e52
Pass merge_textures_new arg by &
2014-11-30 22:09:18 +00:00
Kp
968f7ddc97
Pass gr_gpixel arg by &
2014-11-30 22:09:18 +00:00
Kp
ad3a240958
Pass ogl_ugpixel arg by &
2014-11-30 22:09:18 +00:00
Kp
dd4a0db47f
Pass rle_expand_texture arg as const &
2014-11-30 22:09:17 +00:00
Kp
62ebfe9626
Pass rle_expand_texture_sub arg by &
2014-11-30 22:09:17 +00:00
Kp
06b384e349
Pass scale_bitmap arg by &
2014-11-30 22:09:17 +00:00
Kp
4ad784028b
Pass scale_bitmap points in array<grs_point, 3>
2014-11-21 03:34:50 +00:00
Kp
c2544fe0d9
Move scale decoding array to local scope
2014-11-21 03:33:10 +00:00
Kp
0c76e47f59
Move rle decoding pointers to local scope
2014-11-21 03:32:25 +00:00
Kp
4eaf0ac4c3
Pass scale_up* bitmap arg by &
2014-11-19 04:18:12 +00:00
Kp
8c4fd12a82
Pass decode_row arg by &
2014-11-19 04:16:02 +00:00
Kp
ee8da79953
Simplify rle_remap offset setup
2014-11-19 04:14:33 +00:00
Kp
60d4b91782
Simplify rle_swap_0_255 offset setup
2014-11-19 04:14:10 +00:00
Kp
501f5e8557
Narrow some graphics parameters
2014-11-15 03:31:41 +00:00
Kp
2df4bea9b5
Use range_for in rle
2014-11-15 03:10:09 +00:00
Kp
9baeb31162
Pass rle_end arg by &
2014-11-13 03:41:38 +00:00
Kp
dc772c693d
Remove unused gr_bitblt_double mode
2014-11-12 03:48:22 +00:00
Kp
e756f37b0f
Trap bitmap coordinate overflow
2014-11-12 03:43:44 +00:00
Kp
fa136e7812
Drop redundant gr_set_bitmap_data in gr_init_bitmap_alloc
2014-11-12 03:22:20 +00:00
Kp
c704cc9fc9
Add const void* conversion to various types
...
Add operator const void*() to prevent accidental use of pointer
comparison. With the overload present, comparing two objects triggers
an ambiguous conversion to pointer, instead of comparing the pointer
values.
2014-10-12 22:11:28 +00:00
Kp
25597f2328
Propagate for variables in common/2d/scalec.cpp
2014-09-26 02:42:14 +00:00
Kp
ea5be05645
Propagate for variables in common/2d/rle.cpp
2014-09-26 02:42:14 +00:00
Kp
d869b08e27
Propagate for variables in common/2d/rect.cpp
2014-09-26 02:42:14 +00:00
Kp
2664f2475c
Propagate for variables in common/2d/line.cpp
2014-09-26 02:42:14 +00:00
Kp
d81c49a433
Propagate for variables in common/2d/box.cpp
2014-09-26 02:42:13 +00:00
Kp
66f4155a5f
Propagate for variables in common/2d/bitmap.cpp
2014-09-26 02:42:13 +00:00
Kp
b3c5421a46
Propagate for variables in common/2d/bitblt.cpp
2014-09-26 02:42:13 +00:00
Kp
e22923e004
Use unique_ptr for grs_canvas
2014-09-17 02:45:12 +00:00
Kp
ff31905181
Use unique_ptr for grs_subcanvas
2014-09-07 19:04:06 +00:00
Kp
8d835f8e34
Reduce inclusion of compiler-begin.h
2014-08-24 03:36:35 +00:00
Kp
4d4dbab52f
Use std::swap to implement EXCHG
2014-08-16 04:18:41 +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
Kp
de56714572
Optimize gr_ubox0
2014-07-30 03:12:52 +00:00
Kp
9778c1a151
Use unique_ptr to manage sub bitmaps
2014-07-22 23:48:24 +00:00
Kp
323e796cd0
Use unique_ptr to manage grs_bitmap
2014-07-22 23:48:24 +00:00
Matt Vandermeulen
28f307eb85
Fixes #5 - Byteswap header renamed to byteutil, plus sed magic
...
[Kp: switch to #pragma for byteutil.h]
2014-07-03 02:03:08 +00:00
Kp
d8a1971769
Decode transparent RLE in pieces
2014-07-01 02:30:39 +00:00
Kp
b6033c49f2
Use unsigned transparent bitmap bounds
2014-07-01 01:34:16 +00:00
Kp
3abc33d6cc
Optimize gr_rle_decode
2014-06-30 23:56:51 +00:00
zico
ad7cb106bc
Changed custom D1X license to GPLv3
2014-06-01 19:55:23 +02:00
Kp
073f00974a
Eliminate uses of the typedef struct X { ... } X; pattern
...
C++ does not require this pattern.
import re, fileinput
to = re.compile(r'^typedef struct ([a-z_A-Z]+)\s*{')
tc = re.compile(r'^}(.*?)\s*([a-z_A-Z]+);$')
osn = None
for line in fileinput.input(inplace=True):
m = to.match(line)
if m:
osn = m.group(1)
print 'struct %s\n{' % osn
continue
if osn:
m = tc.match(line)
if m:
csn = m.group(2)
if osn == csn:
print '}%s;' % m.group(1)
osn = None
continue
else:
osn = None
print line,
2013-12-28 22:48:07 +00:00
Kp
b1c5307eb1
Use array for palette_array_t
2013-12-22 00:37:36 +00:00
Kp
a3d66a3b37
Add typedef palette_array_t for palette data
2013-12-22 00:05:13 +00:00
Kp
3b9b5ebfb0
Use RAII to manage function-local heap objects
2013-12-08 19:04:52 +00:00
Kp
9de54cfa74
Switch to C++ linkage
...
import fileinput
guard = 0
cxxguard = '#ifdef __cplusplus\n'
for line in fileinput.input(inplace=True):
if line == cxxguard:
guard = 1
continue
if guard:
if line == 'extern "C" {\n':
guard = 2
continue
if line == '}\n':
guard = 0
continue
if guard == 2:
assert(line == '#endif\n')
guard = 0
print cxxguard,
continue
print line,
2013-12-06 03:35:32 +00:00
Kp
2714679284
Mark private functions static
2013-11-02 04:23:55 +00:00
Kp
b4107e6526
Remove duplicate declarations
2013-10-03 03:11:52 +00:00
Kp
c58c4e4d06
Move declarations to headers
2013-10-03 03:11:52 +00:00