chiark / gitweb /
Move most of face_text_pos() into grid.c, leaving in loopy.c only the
authorSimon Tatham <anakin@pobox.com>
Sat, 23 Apr 2011 11:44:43 +0000 (11:44 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 23 Apr 2011 11:44:43 +0000 (11:44 +0000)
commit5e3de7d95bee214a95a01f8d16778987da75b04c
treef86ff3511da42555f083061ab8fb3ad11f4eadbd
parent0a547b2451a038ab53dcb695c156070792b954c8
Move most of face_text_pos() into grid.c, leaving in loopy.c only the
part that converts from abstract grid coordinates into screen
coordinates. This should speed up window-resizing by eliminating
pointless reiteration of the complicated part of the algorithm: now
when a game_drawstate is renewed, only the conversion into screen
coordinates has to be redone.

[originally from svn r9157]
grid.c
grid.h
loopy.c