Divide with floating point numbers so that the result will be floating

2001-08-17  Anders Carlsson  <andersca@gnu.org>

	* gtk/gtkstyle.c (create_expander_affine): Divide with floating
	point numbers so that the result will be floating point.
This commit is contained in:
Anders Carlsson 2001-08-17 08:09:24 +00:00 committed by Anders Carlsson
parent cf79ce5137
commit 857f7b9d64
8 changed files with 37 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2001-08-17 Anders Carlsson <andersca@gnu.org>
* gtk/gtkstyle.c (create_expander_affine): Divide with floating
point numbers so that the result will be floating point.
2001-08-16 Matthias Clasen <matthiasc@waldgeist.poet.de>
* tests/testgtk.c (create_handle_box):

View File

@ -1,3 +1,8 @@
2001-08-17 Anders Carlsson <andersca@gnu.org>
* gtk/gtkstyle.c (create_expander_affine): Divide with floating
point numbers so that the result will be floating point.
2001-08-16 Matthias Clasen <matthiasc@waldgeist.poet.de>
* tests/testgtk.c (create_handle_box):

View File

@ -1,3 +1,8 @@
2001-08-17 Anders Carlsson <andersca@gnu.org>
* gtk/gtkstyle.c (create_expander_affine): Divide with floating
point numbers so that the result will be floating point.
2001-08-16 Matthias Clasen <matthiasc@waldgeist.poet.de>
* tests/testgtk.c (create_handle_box):

View File

@ -1,3 +1,8 @@
2001-08-17 Anders Carlsson <andersca@gnu.org>
* gtk/gtkstyle.c (create_expander_affine): Divide with floating
point numbers so that the result will be floating point.
2001-08-16 Matthias Clasen <matthiasc@waldgeist.poet.de>
* tests/testgtk.c (create_handle_box):

View File

@ -1,3 +1,8 @@
2001-08-17 Anders Carlsson <andersca@gnu.org>
* gtk/gtkstyle.c (create_expander_affine): Divide with floating
point numbers so that the result will be floating point.
2001-08-16 Matthias Clasen <matthiasc@waldgeist.poet.de>
* tests/testgtk.c (create_handle_box):

View File

@ -1,3 +1,8 @@
2001-08-17 Anders Carlsson <andersca@gnu.org>
* gtk/gtkstyle.c (create_expander_affine): Divide with floating
point numbers so that the result will be floating point.
2001-08-16 Matthias Clasen <matthiasc@waldgeist.poet.de>
* tests/testgtk.c (create_handle_box):

View File

@ -1,3 +1,8 @@
2001-08-17 Anders Carlsson <andersca@gnu.org>
* gtk/gtkstyle.c (create_expander_affine): Divide with floating
point numbers so that the result will be floating point.
2001-08-16 Matthias Clasen <matthiasc@waldgeist.poet.de>
* tests/testgtk.c (create_handle_box):

View File

@ -4003,8 +4003,8 @@ create_expander_affine (gdouble affine[6],
gdouble width;
gdouble height;
width = expander_size / 4;
height = expander_size / 2;
width = expander_size / 4.0;
height = expander_size / 2.0;
s = sin (degrees * G_PI / 180.0);
c = cos (degrees * G_PI / 180.0);