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
e2ed41a90e
Pass canvas to render_face
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
ac7eac1269
Factor out _g3_draw_tmap_2 lighting checks
2017-02-11 21:42:41 +00:00
Kp
f8c2c4958e
Pass canvas to draw_outline
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
0c0026ef1b
Pass canvas to g3 interpreters
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
5a86bcaeb6
Cache canvas in draw_copyright
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
7ce7ef0ccc
Pass canvas to redraw_messagestream
2017-02-11 21:42:38 +00:00
Kp
a67e32d9bd
Pass canvas to flash_cursor
2017-02-11 21:42:38 +00:00
Kp
f88cfd9901
Cache canvas in newmenu_mouse MBTN_LEFT
2017-02-11 21:42:38 +00:00
Kp
df538f1e01
Cache canvas in scores_handler EVENT_WINDOW_DRAW
2017-02-11 21:42:37 +00:00
Kp
103ed33aad
Fold calls to scores_draw_item
2017-02-11 21:42:37 +00:00
Kp
cbf791608d
Pass canvas to scores_draw_item
2017-02-11 21:42:37 +00:00
Kp
2df20e0823
Pass canvas to scores_rprintf
2017-02-11 21:42:37 +00:00
Kp
5e2f2c0b1c
Pass canvas to scores_rputs
2017-02-11 21:42:37 +00:00
Kp
b2b19446de
Cache canvas in show_escort_menu
2017-02-11 21:42:37 +00:00
Kp
d4aa43c17e
Cache canvas in ui_draw_scrollbar
2017-02-11 21:42:37 +00:00
Kp
3becce8cb1
Pass canvas to nm_rstring
2017-02-11 21:42:36 +00:00
Kp
fbc16efa0f
Pass canvas to nm_string
2017-02-11 21:42:36 +00:00
Kp
725ec77006
Avoid unnecessary allocations in nm_string
...
Only allocate a temporary string if a tab exists to be overwritten.
2017-02-11 21:42:36 +00:00
Kp
2c6e8fd446
Simplify nm_string
2017-02-11 21:42:36 +00:00
Kp
7a6818eb01
Fold ui_draw_checkbox calls
2017-02-11 21:42:36 +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