Pass content msg redraw coords as ints.

svn path=/trunk/netsurf/; revision=11893
This commit is contained in:
Michael Drake 2011-03-02 21:10:29 +00:00
parent 6c758cd298
commit cfe6b8cc66

View File

@ -72,16 +72,16 @@ union content_msg_data {
const char *error; /**< Error message, for CONTENT_MSG_ERROR. */ const char *error; /**< Error message, for CONTENT_MSG_ERROR. */
/** Area of content which needs redrawing, for CONTENT_MSG_REDRAW. */ /** Area of content which needs redrawing, for CONTENT_MSG_REDRAW. */
struct { struct {
float x, y, width, height; int x, y, width, height;
/** Redraw the area fully. If false, object must be set, /** Redraw the area fully. If false, object must be set,
* and only the object will be redrawn. */ * and only the object will be redrawn. */
bool full_redraw; bool full_redraw;
/** Object to redraw if full_redraw is false. */ /** Object to redraw if full_redraw is false. */
struct content *object; struct content *object;
/** Coordinates to plot object at. */ /** Coordinates to plot object at. */
float object_x, object_y; int object_x, object_y;
/** Dimensions to plot object with. */ /** Dimensions to plot object with. */
float object_width, object_height; int object_width, object_height;
} redraw; } redraw;
int delay; /**< Minimum delay, for CONTENT_MSG_REFRESH */ int delay; /**< Minimum delay, for CONTENT_MSG_REFRESH */
/** Low-level cache handle, for CONTENT_MSG_DOWNLOAD */ /** Low-level cache handle, for CONTENT_MSG_DOWNLOAD */