summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b9aef17)
2005-09-19 Marco Pesenti Gritti <mpg@redhat.com>
* shell/ev-page-cache.c: (ev_page_cache_get_size):
Dont cast to int before scaling
+2005-09-19 Marco Pesenti Gritti <mpg@redhat.com>
+
+ * shell/ev-page-cache.c: (ev_page_cache_get_size):
+
+ Dont cast to int before scaling
+
2005-09-19 Marco Pesenti Gritti <mpg@redhat.com>
* backend/ev-link.c: (ev_link_type_get_type),
2005-09-19 Marco Pesenti Gritti <mpg@redhat.com>
* backend/ev-link.c: (ev_link_type_get_type),
gint *width,
gint *height)
{
gint *width,
gint *height)
{
g_return_if_fail (EV_IS_PAGE_CACHE (page_cache));
g_return_if_fail (page >= 0 && page < page_cache->n_pages);
g_return_if_fail (EV_IS_PAGE_CACHE (page_cache));
g_return_if_fail (page >= 0 && page < page_cache->n_pages);
- w = (int) (w * scale + 0.5);
- h = (int) (h * scale + 0.5);
+ w = w * scale + 0.5;
+ h = h * scale + 0.5;
if (rotation == 0 || rotation == 180) {
if (rotation == 0 || rotation == 180) {
- if (width) *width = w;
- if (height) *height = h;
+ if (width) *width = (int)w;
+ if (height) *height = (int)h;
- if (width) *width = h;
- if (height) *height = w;
+ if (width) *width = (int)h;
+ if (height) *height = (int)w;