Changeset 114 for trunk/gtk


Ignore:
Timestamp:
Feb 9, 2006, 6:16:36 PM (16 years ago)
Author:
joshe
Message:

Fix ratio calculation to not truncate to a whole number.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/util.c

    r96 r114  
    9191    return g_strdup(_("\xE2\x88\x9E"));
    9292
    93   ratio = up / down;
     93  ratio = (double)up / (double)down;
    9494
    9595  return g_strdup_printf("%.*f", (10.0 > ratio ? 2 : (100.0 > ratio ? 1 : 0)),
Note: See TracChangeset for help on using the changeset viewer.