|
|
@ -605,15 +605,15 @@ void SUSE2Button::renderGradient(TQPainter *painter, const TQRect &rect, const T
|
|
|
|
int rDiff, gDiff, bDiff;
|
|
|
|
int rDiff, gDiff, bDiff;
|
|
|
|
int rc, gc, bc;
|
|
|
|
int rc, gc, bc;
|
|
|
|
|
|
|
|
|
|
|
|
register int y;
|
|
|
|
int y;
|
|
|
|
|
|
|
|
|
|
|
|
rDiff = ( c1.red()) - (rc = c2.red());
|
|
|
|
rDiff = ( c1.red()) - (rc = c2.red());
|
|
|
|
gDiff = ( c1.green()) - (gc = c2.green());
|
|
|
|
gDiff = ( c1.green()) - (gc = c2.green());
|
|
|
|
bDiff = ( c1.blue()) - (bc = c2.blue());
|
|
|
|
bDiff = ( c1.blue()) - (bc = c2.blue());
|
|
|
|
|
|
|
|
|
|
|
|
register int rl = rc << 16;
|
|
|
|
int rl = rc << 16;
|
|
|
|
register int gl = gc << 16;
|
|
|
|
int gl = gc << 16;
|
|
|
|
register int bl = bc << 16;
|
|
|
|
int bl = bc << 16;
|
|
|
|
|
|
|
|
|
|
|
|
int rdelta = ((1<<16) / r_h) * rDiff;
|
|
|
|
int rdelta = ((1<<16) / r_h) * rDiff;
|
|
|
|
int gdelta = ((1<<16) / r_h) * gDiff;
|
|
|
|
int gdelta = ((1<<16) / r_h) * gDiff;
|
|
|
|