gimp_splash.ppm A new splash... gimp1_2_splash.ppm A new file for the old
2000-12-28 Simon Budig <simon@gimp.org> * gimp_splash.ppm A new splash... * gimp1_2_splash.ppm A new file for the old splash * modules/colorsel_triangle.c Fixed a warning.
This commit is contained in:
@ -1,3 +1,10 @@
|
||||
2000-12-28 Simon Budig <simon@gimp.org>
|
||||
|
||||
* gimp_splash.ppm A new splash...
|
||||
* gimp1_2_splash.ppm A new file for the old splash
|
||||
|
||||
* modules/colorsel_triangle.c Fixed a warning.
|
||||
|
||||
2000-12-28 Simon Budig <simon@gimp.org>
|
||||
|
||||
* modules/colorsel_triangle.c
|
||||
|
772
data/images/gimp1_2_splash.ppm
Normal file
772
data/images/gimp1_2_splash.ppm
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
772
gimp1_2_splash.ppm
Normal file
772
gimp1_2_splash.ppm
Normal file
File diff suppressed because one or more lines are too long
902
gimp_splash.ppm
902
gimp_splash.ppm
File diff suppressed because one or more lines are too long
@ -613,9 +613,9 @@ update_previews (ColorSelect *coldata,
|
||||
for (x = x0 - 4, k=0 ; x <= x0 + 4 ; x++) {
|
||||
buf[k] = buf[k+1] = buf[k+2] = BGCOLOR;
|
||||
r2 = (x - x0) * (x - x0) + (y - y0) * (y - y0);
|
||||
if (r2 <= 20 && r2 >= 6)
|
||||
if (r2 <= 20 && r2 >= 6) {
|
||||
buf[k] = buf[k+1] = buf[k+2] = col;
|
||||
else {
|
||||
} else {
|
||||
if (x * x + y * y > COLORTRIANGLERADIUS * COLORTRIANGLERADIUS) {
|
||||
color_hsv_to_rgb (atan2 (x, y) / G_PI * 180, 1, 1,
|
||||
&buf[k], &buf[k+1], &buf[k+2]);
|
||||
@ -690,6 +690,14 @@ color_selection_callback (GtkWidget *widget,
|
||||
case GDK_BUTTON_RELEASE:
|
||||
coldata->mode = 0;
|
||||
gtk_grab_remove (widget);
|
||||
|
||||
/* callback the user */
|
||||
(*coldata->callback) (coldata->data,
|
||||
coldata->values[RED],
|
||||
coldata->values[GREEN],
|
||||
coldata->values[BLUE]);
|
||||
|
||||
return FALSE;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Reference in New Issue
Block a user