Huw Davies : winex11: Add a few 'fall through' comments.

Alexandre Julliard julliard at winehq.org
Tue Nov 27 14:30:48 CST 2012


Module: wine
Branch: master
Commit: 2232fef56c0258f859bf6622f6104c8b2e2d7610
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2232fef56c0258f859bf6622f6104c8b2e2d7610

Author: Huw Davies <huw at codeweavers.com>
Date:   Tue Nov 27 10:11:03 2012 +0000

winex11: Add a few 'fall through' comments.

---

 dlls/winex11.drv/palette.c |    2 ++
 dlls/winex11.drv/xrender.c |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/winex11.drv/palette.c b/dlls/winex11.drv/palette.c
index 91476d4..b9ad599 100644
--- a/dlls/winex11.drv/palette.c
+++ b/dlls/winex11.drv/palette.c
@@ -146,6 +146,7 @@ int X11DRV_PALETTE_Init(void)
     {
     case DirectColor:
 	X11DRV_PALETTE_PaletteFlags |= X11DRV_PALETTE_VIRTUAL;
+        /* fall through */
     case GrayScale:
     case PseudoColor:
 	if (private_color_map)
@@ -175,6 +176,7 @@ int X11DRV_PALETTE_Init(void)
 
     case TrueColor:
 	X11DRV_PALETTE_PaletteFlags |= X11DRV_PALETTE_VIRTUAL;
+        /* fall through */
     case StaticColor:
         X11DRV_PALETTE_PaletteFlags |= X11DRV_PALETTE_FIXED;
         X11DRV_PALETTE_ComputeColorShifts(&X11DRV_PALETTE_default_shifts, default_visual.red_mask, default_visual.green_mask, default_visual.blue_mask);
diff --git a/dlls/winex11.drv/xrender.c b/dlls/winex11.drv/xrender.c
index bafc622..d1d1ccc 100644
--- a/dlls/winex11.drv/xrender.c
+++ b/dlls/winex11.drv/xrender.c
@@ -1112,6 +1112,7 @@ static void UploadGlyph(struct xrender_physdev *physDev, int glyph)
 
             default:
                 ERR("aa = %d - not implemented\n", format);
+                /* fall through */
             case AA_None:
                 wxr_format = WXR_FORMAT_MONO;
                 break;




More information about the wine-cvs mailing list