From a19a1da794e27571e8c5c9391e29d4da1e4524f4 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 24 Apr 2008 09:10:22 +0000 Subject: 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 --- src/Fl_Text_Display.cxx | 2 +- test/hello.cxx | 1 - 2 files changed, 1 insertion(+), 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 #include #include -#include int main(int argc, char **argv) { Fl_Window *window = new Fl_Window(300,180); -- cgit v1.2.3