From a13a1ce827d86eca8c1ce0f87485b7f7201676ae Mon Sep 17 00:00:00 2001 From: mcmartin Date: Tue, 27 Sep 2005 04:25:06 +0000 Subject: [PATCH] Fixed missing break statement in DrawBatch(); spotted by Alex git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1879 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/ChangeLog | 1 + sc2/src/sc2code/libs/graphics/frame.c | 1 + 2 files changed, 2 insertions(+) diff --git a/sc2/ChangeLog b/sc2/ChangeLog index 630bcae2b..515cce161 100644 --- a/sc2/ChangeLog +++ b/sc2/ChangeLog @@ -1,4 +1,5 @@ Changes towards version 0.5: +- Added missing break statement in DrawBatch:RECT_PRIM - Alex - Setup menu split into four submenus - Michael - Fixed fallback in getHomeDir() for when $HOME is not defined on *nix - SvdB diff --git a/sc2/src/sc2code/libs/graphics/frame.c b/sc2/src/sc2code/libs/graphics/frame.c index 62e0f957e..ed3fb2e78 100644 --- a/sc2/src/sc2code/libs/graphics/frame.c +++ b/sc2/src/sc2code/libs/graphics/frame.c @@ -178,6 +178,7 @@ DrawBatch (PPRIMITIVE lpBasePrim, PRIM_LINKS PrimLinks, case RECT_PRIM: COLORtoPalette (GetPrimColor (lpWorkPrim), &color); TFB_Prim_Rect (&lpWorkPrim->Object.Rect, &color); + break; case RECTFILL_PRIM: COLORtoPalette (GetPrimColor (lpWorkPrim), &color); TFB_Prim_FillRect (&lpWorkPrim->Object.Rect, &color);