aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/PlatCocoa.mm
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-05-21 11:52:08 +1000
committernyamatongwe <unknown>2011-05-21 11:52:08 +1000
commitbd90861c34cf8b8001a8c38304b0ee37de252328 (patch)
treedda7e85f3b5eeb4841f79f25b6df967d5280ed6a /cocoa/PlatCocoa.mm
parentb131b0923b67162ff1be29da0ebba7289b5a1c3f (diff)
downloadscintilla-mirror-bd90861c34cf8b8001a8c38304b0ee37de252328.tar.gz
64-bit fixes.
Diffstat (limited to 'cocoa/PlatCocoa.mm')
-rw-r--r--cocoa/PlatCocoa.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm
index 7dfb60169..6e8620b0b 100644
--- a/cocoa/PlatCocoa.mm
+++ b/cocoa/PlatCocoa.mm
@@ -542,7 +542,7 @@ void SurfaceImpl::FillRectangle(PRectangle rc, Surface &surfacePattern)
// Unlike the documentation, you MUST pass in a "components" parameter:
// For coloured patterns it is the alpha value.
- const float alpha = 1.0;
+ const CGFloat alpha = 1.0;
CGContextSetFillPattern( gc, pattern, &alpha );
CGContextFillRect( gc, PRectangleToCGRect( rc ) );
CGContextRestoreGState( gc );
@@ -1475,7 +1475,7 @@ void ListBoxImpl::DrawRow(DataBrowserItemID item,
ColourPair fore;
if (itemState == kDataBrowserItemIsSelected) {
- long systemVersion;
+ SInt32 systemVersion;
Gestalt( gestaltSystemVersion, &systemVersion );
// Panther DB starts using kThemeBrushSecondaryHighlightColor for inactive browser hilighting
if ( (systemVersion >= 0x00001030) )//&& (IsControlActive( lb ) == false) )
@@ -1621,7 +1621,7 @@ void ListBoxImpl::SetFont(Font &font_) {
ts->getAttribute( kATSUFontTag, sizeof(fontID), &fontID, NULL );
ATSUFontIDtoFOND(fontID, &style.font, NULL);
ts->getAttribute( kATSUSizeTag, sizeof(Fixed), &value, NULL );
- style.size = ((SInt16)FixRound((SInt32)value));
+ style.size = ((SInt16)FixRound((uintptr_t)value));
//SetControlFontStyle(lb, &style);
#ifdef DB_TABLE_ROW_HEIGHT