diff options
author | Ken Hughes <khughes@pacific.edu> | 2007-03-17 17:15:02 +0300 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2007-03-17 17:15:02 +0300 |
commit | 4e72e4ad2bf39bc9bb4209b4b2d0fae99127a3d9 (patch) | |
tree | a166660c3dcb8ce0db3d2a7230bcc6b75987bcae /source/blender/src/interface_draw.c | |
parent | bd04d2346559c7a02883ff5ed62b0f4171dbe941 (diff) |
Fix various gcc warning related to signed/unsigned parameters passed to
OpenGL functions.
Diffstat (limited to 'source/blender/src/interface_draw.c')
-rw-r--r-- | source/blender/src/interface_draw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/src/interface_draw.c b/source/blender/src/interface_draw.c index e979d4453cb..3c67975e96f 100644 --- a/source/blender/src/interface_draw.c +++ b/source/blender/src/interface_draw.c @@ -1086,11 +1086,11 @@ static void round_button(float x1, float y1, float x2, float y2, float asp, if(col[1]<100) col[1]= 0; else col[1]-= 100; if(col[2]<100) col[2]= 0; else col[2]-= 100; col[3]= 80; - glColor4ubv(col); + glColor4ubv((GLubyte *)col); gl_round_box(GL_LINE_LOOP, x1, y1, x2, y2, rad - asp); gl_round_box(GL_LINE_LOOP, x1, y1, x2, y2, rad + asp); col[3]= 180; - glColor4ubv(col); + glColor4ubv((GLubyte *)col); gl_round_box(GL_LINE_LOOP, x1, y1, x2, y2, rad); glDisable( GL_BLEND ); @@ -1384,11 +1384,11 @@ void uiDrawMenuBox(float minx, float miny, float maxx, float maxy, short flag) ui_shadowbox(minx, miny, maxx, maxy, 2.0, (100*col[3])>>8); glEnable(GL_BLEND); - glColor4ubv(col); + glColor4ubv((GLubyte *)col); glRectf(minx-1, miny, minx, maxy); // 1 pixel on left, to distinguish sublevel menus } glEnable(GL_BLEND); - glColor4ubv(col); + glColor4ubv((GLubyte *)col); glRectf(minx, miny, maxx, maxy); glDisable(GL_BLEND); } |