summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fluid/Fl_Window_Type.cxx1
-rw-r--r--test/mandelbrot.cxx4
2 files changed, 2 insertions, 3 deletions
diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx
index 607cc7b0b..f070f31df 100644
--- a/fluid/Fl_Window_Type.cxx
+++ b/fluid/Fl_Window_Type.cxx
@@ -1280,7 +1280,6 @@ int Fl_Window_Type::handle(int event) {
reveal_in_browser(myo);
}
}
- CONTINUE_DND:
if (selection && !selection->selected) {
select_only(selection);
((Overlay_Window *)o)->redraw_overlay();
diff --git a/test/mandelbrot.cxx b/test/mandelbrot.cxx
index 430877c9d..e3f2cd15f 100644
--- a/test/mandelbrot.cxx
+++ b/test/mandelbrot.cxx
@@ -53,7 +53,7 @@ const unsigned int palette[] = {
const size_t palette_size = sizeof(palette)/sizeof(palette[0]);
void get_color(float t, uchar& r, uchar& g, uchar& b) {
- int index = (1-t) * palette_size;
+ int index = (int)((1-t) * palette_size);
Fl_Color c = palette[index % palette_size] << 8;
Fl::get_color(c, r, g, b);
}
@@ -174,7 +174,7 @@ int Drawing_Area::idle() {
wx = t = 1-double(i)/(1<<10);
if (t <= 0) t = 0; else for (i=brightness; i--;) t*=wx;
if (use_colors) {
- get_color(t, *p, *(p+1), *(p+2));
+ get_color((float)t, *p, *(p+1), *(p+2));
} else {
*p = 255 - int(254*t);
}