diff options
author | rowanbeentje <rowan@beent.je> | 2011-03-03 01:52:27 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2011-03-03 01:52:27 +0000 |
commit | 6fdc5d75e246d205ea97d65e7ddd8305df5003d8 (patch) | |
tree | 453dd831fa6e4a899906a89627de0f74459adaf8 /Frameworks/PSMTabBar/NSBezierPath_AMShading.m | |
parent | 4422810afa93d3cbce76812cc50e45ef8634180b (diff) | |
download | sequelpro-6fdc5d75e246d205ea97d65e7ddd8305df5003d8.tar.gz sequelpro-6fdc5d75e246d205ea97d65e7ddd8305df5003d8.tar.bz2 sequelpro-6fdc5d75e246d205ea97d65e7ddd8305df5003d8.zip |
- Fix all warnings in the PSMTabBar framework, including a fix for a 10.5 dragging issue and implementing Safari-style fadeout of previous window shell when dragging the last miniwindow out of a tab bar
Diffstat (limited to 'Frameworks/PSMTabBar/NSBezierPath_AMShading.m')
-rwxr-xr-x | Frameworks/PSMTabBar/NSBezierPath_AMShading.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Frameworks/PSMTabBar/NSBezierPath_AMShading.m b/Frameworks/PSMTabBar/NSBezierPath_AMShading.m index 73213f3b..b878688d 100755 --- a/Frameworks/PSMTabBar/NSBezierPath_AMShading.m +++ b/Frameworks/PSMTabBar/NSBezierPath_AMShading.m @@ -23,7 +23,7 @@ static void linearShadedColor(void *info, const CGFloat *in, CGFloat *out) static void bilinearShadedColor(void *info, const CGFloat *in, CGFloat *out) { CGFloat *colors = (CGFloat *)info; - CGFloat factor = (*in)*2.0; + CGFloat factor = (*in)*2.0f; if (*in > 0.5) { factor = 2-factor; } @@ -87,7 +87,7 @@ static void bilinearShadedColor(void *info, const CGFloat *in, CGFloat *out) // draw gradient colorspace = CGColorSpaceCreateDeviceRGB(); size_t components = 1 + CGColorSpaceGetNumberOfComponents(colorspace); - static const CGFloat domain[2] = {0.0, 1.0}; + static const CGFloat domain[2] = {0.0f, 1.0f}; static const CGFloat range[10] = {0, 1, 0, 1, 0, 1, 0, 1, 0, 1}; //static const CGFunctionCallbacks callbacks = {0, &bilinearShadedColor, NULL}; |