Some more GCC 4 and PPC fixes.
* Mesa doesn't compile yet, as some PPC specific stuff seems to be missing, Philippe? * Cortex and some other stuff has been marked x86-only, although it's more of a "GCC 2.95.3"-only. * I'm not sure if it's a bug in GCC 4, or if that's what the C standard demands, but sizeof(some_type::some_field) is not valid anymore :-/ git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17515 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -292,6 +292,7 @@ BColorControl::MessageReceived(BMessage *message)
|
||||
color.red = strtol(fRedText->Text(), NULL, 10);
|
||||
color.green = strtol(fGreenText->Text(), NULL, 10);
|
||||
color.blue = strtol(fBlueText->Text(), NULL, 10);
|
||||
color.alpha = 255;
|
||||
|
||||
SetValue(color);
|
||||
Invoke();
|
||||
@@ -415,8 +416,9 @@ BColorControl::_ColorRamp(BRect rect, BView* target,
|
||||
{
|
||||
float width = rect.Width()+1;
|
||||
rgb_color color;
|
||||
color.alpha = 255;
|
||||
|
||||
target->BeginLineArray(width);
|
||||
target->BeginLineArray((int32)width);
|
||||
|
||||
for (float i = 0; i <= width; i++) {
|
||||
color.red = (uint8)(i * baseColor.red / width);
|
||||
|
||||
Reference in New Issue
Block a user