Kp
b7bbe21e4d
Add const to interpreter model_bitmaps
2017-02-11 21:42:40 +00:00
Kp
59b57bd7dc
Pass canvas to g3_check_and_draw_tmap
2017-02-11 21:42:40 +00:00
Kp
394d9e1b80
Pass canvas to g3_draw_rod_tmap
2017-02-11 21:42:40 +00:00
Kp
6a2f3c1321
Pass canvas to g3_draw_tmap
2017-02-11 21:42:39 +00:00
Kp
4791a40007
Pass canvas to _g3_draw_tmap
2017-02-11 21:42:39 +00:00
Kp
19151c12d9
Pass canvas to draw_tmap{,_flat}
2017-02-11 21:42:39 +00:00
Kp
6f81d13c41
Pass canvas to gr_set_curfont
2017-02-11 21:42:38 +00:00
Kp
842bd7a649
Pass canvas to ui_string_centered
2017-02-11 21:42:36 +00:00
Kp
aa9b9a8346
Pass canvas to ui_draw_box_in
2017-02-11 21:42:36 +00:00
Kp
04c7f7c790
Pass canvas to ui_draw_box_out
2017-02-11 21:42:35 +00:00
Kp
a51b071053
Pass canvas to ui_draw_frame
2017-02-11 21:42:35 +00:00
Kp
5636a85f3c
Pass canvas to ui_draw_shad
2017-02-11 21:42:35 +00:00
Kp
cf1f5df3cc
Pass canvas to Vline
2017-02-11 21:42:35 +00:00
Kp
f9cb598b0f
Pass canvas to Hline
2017-02-11 21:42:35 +00:00
Kp
554daa61cc
Pass font to ui_get_button_size
2017-02-11 21:42:34 +00:00
Kp
beaa49a7ba
Pass destination bitmap to scale_bitmap
2017-02-11 21:42:34 +00:00
Kp
590a025a89
Pass canvas to g3_start_frame
2017-02-11 21:42:34 +00:00
Kp
740b3a9649
Pass canvas to ogl_start_frame
2017-02-11 21:42:33 +00:00
Kp
80e7ade6a1
Pass canvas to g3_draw_sphere
2017-02-11 21:42:33 +00:00
Kp
513e7ceceb
Pass canvas to g3_draw_line
2017-02-11 21:42:33 +00:00
Kp
47a319bba5
Pass canvas to g3_draw_line
2017-02-11 21:42:33 +00:00
Kp
f8b057d43d
Pass canvas to gr_bm_ubitbltm
2017-02-11 21:42:32 +00:00
Kp
9cc5d6f439
Pass canvas to gr_bm_ubitblt
2017-02-11 21:42:32 +00:00
Kp
ae33aaafc1
Pass canvas to gr_set_fontcolor
2017-02-11 21:42:32 +00:00
Kp
0dcae721d9
Make canvas an explicit argument to gr_printf
...
Previously, a macro implied *grd_curcanv as the canvas. Pass the canvas
explicitly so that callers can choose the canvas to use.
2017-02-11 21:42:32 +00:00
Kp
d1657ba269
Make canvas an explicit argument to gr_uprintf
...
Previously, a macro implied *grd_curcanv as the canvas. Pass the canvas
explicitly so that callers can choose the canvas to use.
2017-02-11 21:42:32 +00:00
Kp
8783c22003
Remove obsolete ogl_pal
2017-02-11 21:42:31 +00:00
Kp
2cf0a0034a
Simplify g3_draw_poly call stack
2017-02-11 21:42:31 +00:00
Kp
43a700a200
Prefer grs_main_bitmap::reset() to direct reinitialization
...
This ensures that any allocated resources are always freed.
2017-02-11 21:42:31 +00:00
Kp
c1440ff995
Factor out RLE expansion
...
Many sites open-coded walking a bitmap and handling whether it was
RLE_BIG. Factor that out into a helper class and redirect those sites
to use it.
2017-02-11 21:42:30 +00:00
Kp
c16b7763e9
Remove unused ui_draw_line_in
2017-02-08 23:34:41 +00:00
Kp
8c706a88bd
Initialize grs_main_bitmap at construction
2017-01-28 18:12:20 +00:00
Kp
fc12995d89
Add options for reduced-size valptridx error reporting
2017-01-28 18:12:20 +00:00
Kp
c46a0ce27c
Remove some remotely-triggerable fatal exceptions
...
By design, valptridx will throw an exception on invalid input. This is
better than silently permitting invalid input to corrupt program state.
Past releases blindly trusted that multiplayer peers would not send
invalid input. Conversion to the valptridx design eliminated the
undefined behavior when peers send invalid input, but still allowed
multiplayer peers to remotely crash the game by sending invalid inputs.
Add a mechanism to trap invalid inputs and gracefully ignore those
messages. This may cause game consistency issues, but will not allow
data corruption.
2017-01-28 18:12:20 +00:00
Kp
baa187801b
Add special case to make past releases not die on various segnums
...
All releases to date have a bug where they treat certain segment number
fields as an int, not a segment number. Storing segment_none (0xffff)
into the save file causes affected releases to crash in various places
because it fails to recognize that this is segment_none.
Current code correctly treats segment_none as a non-segment and works
correctly without this hack. The hack is only required to get past
releases to work correctly after loading a saved game written by current
code.
2017-01-21 19:05:43 +00:00
Kp
764d20d4e1
Make grs_bitmap::bm_flags private
2017-01-15 00:03:13 +00:00
Kp
7fafc22cca
Poison multiplayer object_rw without making it unreadable
...
`struct object_rw` is poisoned prior to initializing and sending it.
However, some fields are legitimately unininitialized (other than their
memset or poison value) at send time. Add and use a poison variant that
can clear those fields, without marking them unreadable.
2017-01-08 22:32:00 +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
c914131009
Pass canvas to gr_rle_expand_scanline_generic
2017-01-01 00:45:45 +00:00
Kp
22e364e030
Pass canvas to gr_clear_canvas
2017-01-01 00:45:45 +00:00
Kp
0905aefa0a
Pass canvas to gr_rect
2017-01-01 00:45:45 +00:00
Kp
794dcce327
Pass canvas to gr_urect
2017-01-01 00:45:44 +00:00
Kp
774dedd21d
Pass canvas to gr_bm_pixel
2017-01-01 00:45:44 +00:00
Kp
77c22d3a7f
Pass canvas to gr_settransblend
2017-01-01 00:45:44 +00:00
Kp
c3c4ab8e3e
Pass canvas to gr_box
2017-01-01 00:45:44 +00:00
Kp
dac1a69f7c
Pass canvas to gr_ubox
2017-01-01 00:45:44 +00:00
Kp
1b57e9a5ff
Pass canvas to show_fullscr
2017-01-01 00:45:43 +00:00
Kp
250bf58e51
Pass canvas to gr_bitmapm
2017-01-01 00:45:43 +00:00