diff --git a/Source/NSSliderCell.m b/Source/NSSliderCell.m index a59ad05e8..f1b99596e 100644 --- a/Source/NSSliderCell.m +++ b/Source/NSSliderCell.m @@ -152,6 +152,11 @@ [controlView unlockFocus]; } +- (BOOL) isOpaque +{ + return YES; +} + - (float) knobThickness { NSImage* image = [_knobCell image]; diff --git a/Source/NSText.m b/Source/NSText.m index 96146e166..2b916f9b4 100644 --- a/Source/NSText.m +++ b/Source/NSText.m @@ -3192,7 +3192,20 @@ _relocLayoutArray (NSMutableArray *lineLayoutInformation, } // text lays out from top to bottom -- (BOOL) isFlipped {return YES;} +- (BOOL) isFlipped +{ + return YES; +} + +- (BOOL) isOpaque +{ + if (draws_background == NO + || background_color == nil + || [background_color alphaComponent] < 1.0) + return NO; + else + return YES; +} // // Copy and paste