Skip to content

Commit d7a4fd1

Browse files
author
bgbnbigben
committed
Cleaned up yet more warnings...
git-svn-id: http://seriss.com/public/fltk/fltk/trunk@8498 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1 parent 0b6f6fc commit d7a4fd1

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/Cursor.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ static HCURSOR create_cursor_from_image(Image *img, int x, int y)
311311

312312
ReleaseDC(NULL,hdc);
313313

314-
int w = img->w() , h = img->h();
314+
int w = img->w()/* , h = img->h()*/;
315315
unsigned char* isrc = img->buffer();
316316
DWORD *lpdwPixel = (DWORD *)lpBits;
317317
for (int i=0;i<cw;i++)

src/FileChooser.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,4 +497,5 @@ int FileChooser::favorites() const {
497497
return favorites_showing;
498498
}
499499

500-
// End of "$Id$"
500+
// End of "$Id$"
501+

src/drawtext.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -438,12 +438,12 @@ static void wrap(
438438
// so add space to enhance the shortcut appearance
439439
// finally, the shortcut symbol should be centered for all platforms
440440
// whatever the font is so add a potential delta
441-
int xdelta = (int) (getwidth(p,1)-getwidth(us,1))/2;
442-
int ydelta =
441+
float xdelta = (getwidth(p,1)-getwidth(us,1))/2.0;
442+
float ydelta =
443443
#ifndef _WIN32
444-
(getdescent())/2;
444+
(getdescent())/2.0;
445445
#else
446-
(getdescent())/2 -1;
446+
(getdescent())/2.0 - 1.0;
447447
#endif
448448
add(0, us, us+1, x+xdelta, y+ascent+ydelta, getsize(),getsize(), ascent, spacing);
449449
}

0 commit comments

Comments
 (0)