From 9c70e13b1de5d3d087df79644b12bba3da119896 Mon Sep 17 00:00:00 2001 From: danij Date: Sun, 26 Feb 2012 16:35:10 +0000 Subject: [PATCH] libcommon|API: GL_DrawPatch() now assumes a [x:0, y:0] origin if not specified --- doomsday/plugins/common/src/gl_drawpatch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doomsday/plugins/common/src/gl_drawpatch.c b/doomsday/plugins/common/src/gl_drawpatch.c index 5c292c381b..6630de70c8 100644 --- a/doomsday/plugins/common/src/gl_drawpatch.c +++ b/doomsday/plugins/common/src/gl_drawpatch.c @@ -31,11 +31,11 @@ void GL_DrawPatch3(patchid_t id, const Point2Raw* origin, int alignFlags, int pa RectRaw rect; patchinfo_t info; - if(id == 0 || !origin || DD_GetInteger(DD_NOVIDEO) || DD_GetInteger(DD_DEDICATED)) return; + if(id == 0 || DD_GetInteger(DD_NOVIDEO) || DD_GetInteger(DD_DEDICATED)) return; if(!R_GetPatchInfo(id, &info)) return; - rect.origin.x = origin->x; - rect.origin.y = origin->y; + rect.origin.x = origin? origin->x : 0; + rect.origin.y = origin? origin->y : 0; if(alignFlags & ALIGN_RIGHT) rect.origin.x -= info.geometry.size.width;