summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Fl_Text_Display.cxx2
-rw-r--r--test/hello.cxx1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx
index 3af748004..1181a90af 100644
--- a/src/Fl_Text_Display.cxx
+++ b/src/Fl_Text_Display.cxx
@@ -377,7 +377,7 @@ void Fl_Text_Display::resize(int X, int Y, int W, int H) {
H -= Fl::box_dh(box());
text_area.x = X+LEFT_MARGIN;
- text_area.y = Y+BOTTOM_MARGIN;
+ text_area.y = Y+TOP_MARGIN;
text_area.w = W-LEFT_MARGIN-RIGHT_MARGIN;
text_area.h = H-TOP_MARGIN-BOTTOM_MARGIN;
int i;
diff --git a/test/hello.cxx b/test/hello.cxx
index 1021bee1c..f12ab7095 100644
--- a/test/hello.cxx
+++ b/test/hello.cxx
@@ -28,7 +28,6 @@
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Box.H>
-#include <FL/filename.H>
int main(int argc, char **argv) {
Fl_Window *window = new Fl_Window(300,180);