summaryrefslogtreecommitdiff
path: root/FL/Fl_Window.H
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2008-04-23 15:07:13 +0000
committerMatthias Melcher <fltk@matthiasm.com>2008-04-23 15:07:13 +0000
commit88c0d727aa89b650611ce8c677d4ed26e2fc1f4a (patch)
tree2df0c8b6badeccbf784d7009546d4a7950f60fed /FL/Fl_Window.H
parent8683ea2c810a3d689e436a8d13abbbba50efc4f5 (diff)
All widget coordinates are now 32 bit. Beware though, on a 16 bit graphics system, line drawing and window positioning is still messed up for coordinates beyond 16 bit. See STR #1929.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6112 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Window.H')
-rw-r--r--FL/Fl_Window.H7
1 files changed, 4 insertions, 3 deletions
diff --git a/FL/Fl_Window.H b/FL/Fl_Window.H
index 9006d4766..2d518ac0e 100644
--- a/FL/Fl_Window.H
+++ b/FL/Fl_Window.H
@@ -44,8 +44,9 @@ class FL_EXPORT Fl_Window : public Fl_Group {
const char* xclass_;
const void* icon_;
// size_range stuff:
- short minw, minh, maxw, maxh;
- uchar dw, dh, aspect, size_range_set;
+ int minw, minh, maxw, maxh;
+ int dw, dh, aspect;
+ uchar size_range_set;
// cursor stuff
Fl_Cursor cursor_default;
Fl_Color cursor_fg, cursor_bg;
@@ -94,7 +95,7 @@ public:
void hotspot(const Fl_Widget& p, int offscreen = 0) {hotspot(&p,offscreen);}
void free_position() {clear_flag(FL_FORCE_POSITION);}
void size_range(int a, int b, int c=0, int d=0, int e=0, int f=0, int g=0) {
- minw=(short)a; minh=(short)b; maxw=(short)c; maxh=(short)d; dw=(uchar)e; dh=(uchar)f; aspect=(uchar)g; size_range_();}
+ minw=a; minh=b; maxw=c; maxh=d; dw=e; dh=f; aspect=g; size_range_();}
const char* label() const {return Fl_Widget::label();}
const char* iconlabel() const {return iconlabel_;}