diff options
| author | Max Horn | 2009-07-01 20:51:04 +0000 | 
|---|---|---|
| committer | Max Horn | 2009-07-01 20:51:04 +0000 | 
| commit | a6b57dc3a986f749ca8f915b461b184d48390757 (patch) | |
| tree | d6c3e5e46743dd5073b8853613d61e501fa76fcd /engines/sci/gfx/operations.cpp | |
| parent | 62acda5fdbe0daaeae9e1d0f08044b8be4ee98cf (diff) | |
| download | scummvm-rg350-a6b57dc3a986f749ca8f915b461b184d48390757.tar.gz scummvm-rg350-a6b57dc3a986f749ca8f915b461b184d48390757.tar.bz2 scummvm-rg350-a6b57dc3a986f749ca8f915b461b184d48390757.zip | |
- Added GCC_PRINTF attribute to several funcs where it makes sense
- change some constants from double to float, to avoid "loss of precision due to implicit conversion" warnings
- removed duplicate prototypes for some funcs
- fixed some "increases required alignment of target type" warnings
svn-id: r42009
Diffstat (limited to 'engines/sci/gfx/operations.cpp')
| -rw-r--r-- | engines/sci/gfx/operations.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/engines/sci/gfx/operations.cpp b/engines/sci/gfx/operations.cpp index 613e5de1b1..7496c55868 100644 --- a/engines/sci/gfx/operations.cpp +++ b/engines/sci/gfx/operations.cpp @@ -662,7 +662,7 @@ static int line_clip(rect_t *line, rect_t clip, int xfact, int yfact) {  			return line_check_bar(&(line->x), &(line->width), clip.x, clip.width);  		} else { // "normal" line -			float start = 0.0, end = 1.0; +			float start = 0.0f, end = 1.0f;  			float xv = (float)line->width;  			float yv = (float)line->height; @@ -682,7 +682,7 @@ static int line_clip(rect_t *line, rect_t clip, int xfact, int yfact) {  			line->width = (int)(xv * (end - start));  			line->height = (int)(yv * (end - start)); -			return (start > 1.0 || end < 0.0); +			return (start > 1.0f || end < 0.0f);  		}  	} @@ -902,7 +902,7 @@ int gfxop_draw_rectangle(GfxState *state, rect_t rect, gfx_color_t color, gfx_li  int gfxop_draw_box(GfxState *state, rect_t box, gfx_color_t color1, gfx_color_t color2, gfx_box_shade_t shade_type) {  	GfxDriver *drv = state->driver;  	int reverse = 0; // switch color1 and color2 -	float mod_offset = 0.0, mod_breadth = 1.0; // 0.0 to 1.0: Color adjustment +	float mod_offset = 0.0f, mod_breadth = 1.0f; // 0.0 to 1.0: Color adjustment  	gfx_rectangle_fill_t driver_shade_type;  	rect_t new_box; | 
