summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2008-04-24 09:10:22 +0000
committerMatthias Melcher <fltk@matthiasm.com>2008-04-24 09:10:22 +0000
commita19a1da794e27571e8c5c9391e29d4da1e4524f4 (patch)
treea3ebc53ae8c53a48cec7206d04663782633ff579
parent5134c0988d39c40c6c0e0ca5edcb31f2d28e8954 (diff)
Text_Display was using a wrong border margin STR 1909
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6118 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-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);