Kp
859b399d20
Use mask for Secondary_last_was_super
2017-02-19 19:33:45 +00:00
Kp
7c658fd8cd
Use mask for Primary_last_was_super
2017-02-19 19:33:44 +00:00
Kp
a6cd87613c
Pass polymodel &to free_model
2017-02-19 19:33:44 +00:00
Kp
1a7659897a
Pass canvas to draw_model_picture
2017-02-19 19:33:44 +00:00
Kp
39071d124d
Pass canvas to draw_polygon_model
2017-02-19 19:33:43 +00:00
Kp
b918760b3f
Move find_connect_side body to dcx
2017-02-19 19:33:38 +00:00
Kp
b82d9d2b51
Move get_side_verts body to dcx
2017-02-19 19:33:38 +00:00
Kp
9821a77372
Simplify use of get_num_faces
2017-02-19 19:33:38 +00:00
Kp
cdb193c053
Use unsigned for sides/verts in more places
2017-02-19 19:33:38 +00:00
Kp
0f00cf51b0
Make segment vertices unsigned
2017-02-19 19:33:37 +00:00
Kp
ef928d39c0
Fix check_header_includes=1 gamemine.h
2017-02-19 19:33:37 +00:00
Kp
45d7c6da65
Fix check_header_includes=1 wall.h
2017-02-19 19:33:36 +00:00
Kp
a815541ef5
Fix check_header_includes=1 poison.h
2017-02-19 19:33:36 +00:00
Kp
cd25b55305
Fix check_header_includes=1 fwd-valptridx.h
2017-02-19 19:33:36 +00:00
Kp
569d64e927
Propagate Hack_DblClick_MenuMode
2017-02-11 21:42:47 +00:00
Kp
97cf921b72
Cache canvas in ui_draw_checkbox
2017-02-11 21:42:46 +00:00
Kp
2725ea02c2
Cache canvas in ui_draw_button
2017-02-11 21:42:46 +00:00
Kp
fb53bc9257
Pass canvas to player_dead_message
2017-02-11 21:42:46 +00:00
Kp
05905ced06
Pass font to gr_get_string_wrap
2017-02-11 21:42:44 +00:00
Kp
69a4857ba5
Pass canvas to ui_draw_box_in1
2017-02-11 21:42:44 +00:00
Kp
75ffb6b778
Add valptridx trap for dereferencing a null pointer
2017-02-11 21:42:44 +00:00
Kp
dfe827e793
Relax valptridx<T>::guarded compile-time checks
...
When using `gcc -fsanitize=undefined`, the compiler proves trivial
results, so `DXX_CONSTANT_TRUE` is defined. It then fails to prove that
`DXX_CONSTANT_TRUE(m_state == checked)` is false, causing a compile-time
error. Relax the check to occur only when it can prove `m_state` equal
to a disallowed value, rather than when it cannot prove `m_state` equal
to an allowed value.
Move the preprocessor guard so that the runtime check is always visible.
Optimizing compilers can still eliminate that check at compile-time when
it provably never fails.
2017-02-11 21:42:43 +00:00
Kp
17208cca79
Disallow int for vm_distance_squared
2017-02-11 21:42:43 +00:00
Kp
d8638c6c89
Pass canvas to UP_ARROW_MARKER, DOWN_ARROW_MARKER
2017-02-11 21:42:43 +00:00
Kp
6b8f08142f
Pass canvas to LINE_SPACING
...
Macro LINE_SPACING previously used global grd_curcanv implicitly.
Change it to take a canvas argument. Change all callers to pass
grd_curcanv, so that usage is explicit.
2017-02-11 21:42:42 +00:00
Kp
ed9fe62d85
Expand GHEIGHT
...
As a macro, it always refers to the global grd_curcanv. This interferes
with converting canvas handling to be an argument. Expand GHEIGHT so
that uses of grd_curcanv can be changed individually.
2017-02-11 21:42:42 +00:00
Kp
03c43b1d7f
Expand GWIDTH
...
As a macro, it always refers to the global grd_curcanv. This interferes
with converting canvas handling to be an argument. Expand GWIDTH so
that uses of grd_curcanv can be changed individually.
2017-02-11 21:42:42 +00:00
Kp
0d5d2e77a8
Pass canvas to g3_check_and_draw_poly
2017-02-11 21:42:42 +00:00
Kp
48bf96fe6a
Pass canvas to g3_draw_bitmap
2017-02-11 21:42:42 +00:00
Kp
761c926604
Pass canvas to g3_draw_tmap_2
2017-02-11 21:42:41 +00:00
Kp
f279bb8497
Pass canvas to _g3_draw_tmap_2
2017-02-11 21:42:41 +00:00
Kp
c732c35916
Pass canvas to g3_draw_poly
2017-02-11 21:42:41 +00:00
Kp
66ee668e48
Pass canvas to _g3_draw_poly
2017-02-11 21:42:41 +00:00
Kp
214d930e14
Pass canvas to must_clip_flat_face
2017-02-11 21:42:41 +00:00
Kp
416954bbdf
Pass canvas to gr_upoly_tmap
2017-02-11 21:42:40 +00:00
Kp
85da2c0013
Pass canvas to g3_draw_polygon_model
2017-02-11 21:42:40 +00:00
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
cd8f408269
Pass canvas to draw_object_tmap_rod
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
a0538843b7
Pass canvas to must_clip_tmap_face
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
2a403f74a0
Pass canvas to gr_upoly_tmap_ylr
2017-02-11 21:42:39 +00:00
Kp
742c463858
Pass canvas to texture_map_flat
2017-02-11 21:42:39 +00:00
Kp
e288c20014
Pass canvas to tmap_scanline_flat
2017-02-11 21:42:39 +00:00
Kp
bc91e8b789
Propagate function pointer into texture_map_flat
2017-02-11 21:42:38 +00:00
Kp
6f81d13c41
Pass canvas to gr_set_curfont
2017-02-11 21:42:38 +00:00
Kp
d4aa43c17e
Cache canvas in ui_draw_scrollbar
2017-02-11 21:42:37 +00:00