comparison dwt/graphics/GC.d @ 151:0ba75290f8ce

Added a bunch of missing defaults to switch statements
author Jacob Carlborg <doob@me.com>
date Wed, 10 Jun 2009 21:52:31 +0200
parents 476f8d5c0b07
children
comparison
equal deleted inserted replaced
150:1ec7c20355bd 151:0ba75290f8ce
2129 break; 2129 break;
2130 case OS.NSClosePathBezierPathElement: 2130 case OS.NSClosePathBezierPathElement:
2131 if (pointCount !is 0) clipRgn.add(pointArray, pointCount); 2131 if (pointCount !is 0) clipRgn.add(pointArray, pointCount);
2132 pointCount = 0; 2132 pointCount = 0;
2133 break; 2133 break;
2134 default:
2134 } 2135 }
2135 } 2136 }
2136 if (pointCount !is 0) clipRgn.add(pointArray, pointCount); 2137 if (pointCount !is 0) clipRgn.add(pointArray, pointCount);
2137 OS.free(points); 2138 OS.free(points);
2138 region.intersect(clipRgn); 2139 region.intersect(clipRgn);
2278 switch (interpolation) { 2279 switch (interpolation) {
2279 case OS.NSImageInterpolationDefault: return DWT.DEFAULT; 2280 case OS.NSImageInterpolationDefault: return DWT.DEFAULT;
2280 case OS.NSImageInterpolationNone: return DWT.NONE; 2281 case OS.NSImageInterpolationNone: return DWT.NONE;
2281 case OS.NSImageInterpolationLow: return DWT.LOW; 2282 case OS.NSImageInterpolationLow: return DWT.LOW;
2282 case OS.NSImageInterpolationHigh: return DWT.HIGH; 2283 case OS.NSImageInterpolationHigh: return DWT.HIGH;
2284 default:
2283 } 2285 }
2284 return DWT.DEFAULT; 2286 return DWT.DEFAULT;
2285 } 2287 }
2286 2288
2287 /** 2289 /**