Added Greg Ercolanos filedescripter support

Fixed Text Width bug.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher
2002-06-27 23:18:12 +00:00
parent cdc15f49a6
commit a4e0a9adb5
4 changed files with 273 additions and 45 deletions
+2
View File
@@ -1,5 +1,7 @@
CHANGES IN FLTK 1.1.0
- Added Greg Ercolano's MacOS filedescriptor support.
- Fixed text width bug.
- A change in fl_fix_focus() broken click-focus in FLWM.
- Cygwin with -mnocygwin didn't like the FL/math.h
header file.
-2
View File
@@ -87,14 +87,12 @@ KNOWN MacFLTK BUGS
The following FLTK things are not implemented or don't work
at present:
- File handles (Fl::add_fd) are not implemented.
- Line styles are not fully implemented.
- Sub-sub-subwindow not tested.
- Image transparency is implemented as "screen-door" only
- The 'shiny' demo needs work (flush/aglFlush).
- Threads are not implemented.
- OpenGL subwindow during window resize changes position
- fl_measure returns wrong width (wrong current font?)
TEST SUITE STATUS
+268 -35
View File
File diff suppressed because it is too large Load Diff
+3 -8
View File
@@ -1,5 +1,5 @@
//
// "$Id: fl_font_mac.cxx,v 1.1.2.9 2002/06/27 04:29:39 matthiaswm Exp $"
// "$Id: fl_font_mac.cxx,v 1.1.2.10 2002/06/27 23:18:12 matthiaswm Exp $"
//
// MacOS font selection routines for the Fast Light Tool Kit (FLTK).
//
@@ -27,6 +27,7 @@
//: TextSize, TextFont
//: GetFNum (theName: Str255; VAR familyID: Integer);
//: FUNCTION FMSwapFont (inRec: FMInput): FMOutPtr;
//: SetFractEnable
Fl_FontSize::Fl_FontSize(const char* name, int Size) {
knowMetrics = 0;
@@ -126,13 +127,7 @@ static Fl_FontSize* find(int fnum, int size) {
////////////////////////////////////////////////////////////////
// Public interface:
int fl_font_ = 0;
int fl_size_ = 0;
void fl_font(int fnum, int size) {
if (fnum == fl_font_ && size == fl_size_) return;
fl_font_ = fnum;
fl_size_ = size;
fl_font(find(fnum, size));
}
@@ -159,5 +154,5 @@ void fl_draw(const char* str, int n, int x, int y) {
}
//
// End of "$Id: fl_font_mac.cxx,v 1.1.2.9 2002/06/27 04:29:39 matthiaswm Exp $".
// End of "$Id: fl_font_mac.cxx,v 1.1.2.10 2002/06/27 23:18:12 matthiaswm Exp $".
//