Commit: e278f01bcdec5f89425b693e830a472499d40dd7 Trac URL: http://developer.wz2100.net/changeset/e278f01bcdec5f89425b693e830a472499d40dd7
Author: Giel van Schijndel <g...@wz2100.net> Date: Wed Oct 13 18:22:45 2010 +0200 remove write-only variable iSurface.flags Remove the write only member variable `flags` from struct iSurface. Additionally remove the macros REND_SURFACE_(UNDEFINED|SCREEN|USR) which were only used to assign to the `flags` variable. Signed-off-by: Giel van Schijndel <g...@wz2100.net> lib/ivis_common/ivisdef.h | 1 - lib/ivis_common/rendmode.h | 8 +------- lib/ivis_opengl/piemode.c | 3 --- lib/ivis_opengl/rendmode.c | 9 ++++----- src/intdisplay.c | 8 ++++---- 5 files changed, 9 insertions(+), 20 deletions(-) ------------------------- Commit: 5a51986e65065e0f583893813999e562b28f3458 Trac URL: http://developer.wz2100.net/changeset/5a51986e65065e0f583893813999e562b28f3458 Author: Giel van Schijndel <g...@wz2100.net> Date: Wed Oct 13 18:50:12 2010 +0200 Get rid of double pie_/iV_ names for the same functions Signed-off-by: Giel van Schijndel <g...@wz2100.net> lib/ivis_common/pieblitfunc.h | 10 +++++----- lib/ivis_common/rendmode.h | 9 --------- lib/ivis_opengl/pieblitfunc.c | 10 +++++----- src/intdisplay.c | 4 ++-- 4 files changed, 12 insertions(+), 21 deletions(-) ------------------------- Commit: 681988a5d4b377b41d4c823f6e3580ff7a346d83 Trac URL: http://developer.wz2100.net/changeset/681988a5d4b377b41d4c823f6e3580ff7a346d83 Author: Giel van Schijndel <g...@wz2100.net> Date: Wed Oct 13 18:51:58 2010 +0200 Remove unused constant PIE_NO_CULL Signed-off-by: Giel van Schijndel <g...@wz2100.net> lib/ivis_common/rendmode.h | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) ------------------------- Commit: 5ab267ab71d8e389ea19a68558cf460cce55e2c4 Trac URL: http://developer.wz2100.net/changeset/5ab267ab71d8e389ea19a68558cf460cce55e2c4 Author: Giel van Schijndel <g...@wz2100.net> Date: Wed Oct 13 19:21:32 2010 +0200 Remove pointer global psRendSurface Global pointer psRendSurface only ever contains &rendSurface (another global), provided that it isn't undefined (isn't statically NULL initialised). So replace the use of this pointer with using rendSurface. Additionally remove function iV_RenderAssign, which only wraps the psRendSurface assignment along with a debug() call, and inline it at its only call-site. Signed-off-by: Giel van Schijndel <g...@wz2100.net> lib/ivis_common/rendmode.h | 2 -- lib/ivis_opengl/pieblitfunc.c | 20 ++++++++++---------- lib/ivis_opengl/piematrix.c | 12 ++++++------ lib/ivis_opengl/piemode.c | 2 +- lib/ivis_opengl/rendmode.c | 27 +-------------------------- 5 files changed, 18 insertions(+), 45 deletions(-) ------------------------- Commit: 6e509622c2895bc991215a603d61fe1a040aad7f Trac URL: http://developer.wz2100.net/changeset/6e509622c2895bc991215a603d61fe1a040aad7f Author: Giel van Schijndel <g...@wz2100.net> Date: Wed Oct 13 20:25:57 2010 +0200 move global rendSurface to piemode.c rendSurface isn't used by rendmode.c, so define it in piemode.c where it is both used and its contents are defined. Additionally remove unnecessary #includes from rendmode.h and include the correct headers at places where rendmode.h was included. Signed-off-by: Giel van Schijndel <g...@wz2100.net> lib/ivis_common/imdload.c | 1 - lib/ivis_common/piemode.h | 4 +++- lib/ivis_common/rendmode.h | 7 ------- lib/ivis_opengl/pieblitfunc.c | 1 - lib/ivis_opengl/piedraw.c | 1 - lib/ivis_opengl/piefunc.c | 1 - lib/ivis_opengl/piematrix.c | 2 +- lib/ivis_opengl/piemode.c | 3 ++- lib/ivis_opengl/piepalette.c | 3 +-- lib/ivis_opengl/piestate.c | 2 +- lib/ivis_opengl/rendmode.c | 20 +++----------------- lib/ivis_opengl/tex.c | 1 - lib/ivis_opengl/textdraw.c | 1 - lib/widget/bar.c | 2 +- lib/widget/button.c | 2 +- lib/widget/editbox.c | 2 +- lib/widget/form.c | 2 +- lib/widget/label.c | 1 - lib/widget/slider.c | 2 +- lib/widget/tip.c | 2 +- src/challenge.c | 3 ++- src/console.c | 3 ++- src/design.c | 3 ++- src/display3d.c | 2 +- src/drive.c | 2 -- src/frontend.c | 3 ++- src/game.c | 2 +- src/hci.c | 3 ++- src/ingameop.c | 1 - src/init.c | 1 - src/intdisplay.c | 1 + src/intelmap.c | 2 +- src/intimage.c | 4 +++- src/keybind.c | 1 - src/loadsave.c | 3 ++- src/loop.c | 3 +-- src/main.c | 2 +- src/multiint.c | 3 ++- src/multimenu.c | 2 +- src/radar.c | 2 +- src/scores.c | 2 +- src/seqdisp.c | 1 - src/terrain.c | 1 - src/wrappers.c | 2 +- 44 files changed, 44 insertions(+), 68 deletions(-) ------------------------- Commit: 0d2dbdbaef02c900b557baa31627c3d23e762d21 Trac URL: http://developer.wz2100.net/changeset/0d2dbdbaef02c900b557baa31627c3d23e762d21 Author: Giel van Schijndel <g...@wz2100.net> Date: Wed Oct 13 21:25:26 2010 +0200 Replace rendSurface related bitshifts with divisions These cases of bitshifting are premature optimisations ''only'', especially since they obscure what's really going on (finding the center of a range). Signed-off-by: Giel van Schijndel <g...@wz2100.net> lib/ivis_opengl/rendmode.c | 6 +++--- src/display3d.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) ------------------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ Warzone2100-commits mailing list Warzone2100-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/warzone2100-commits