summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Window.cxx7
-rw-r--r--src/Fl_win32.cxx2
2 files changed, 6 insertions, 3 deletions
diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx
index 5425aaa1d..84b3d119f 100644
--- a/src/Fl_Window.cxx
+++ b/src/Fl_Window.cxx
@@ -100,10 +100,11 @@ int Fl_Window::y_root() const {
void Fl_Window::draw() {
const char *savelabel = label();
- uchar saveflags = flags();
+ int saveflags = flags();
int savex = x(); x(0);
int savey = y(); y(0);
// Make sure we don't draw the window title in the window background...
+ clear_flag(COPIED_LABEL); // do not free copied labels!
Fl_Widget::label(0);
Fl_Group::draw();
#ifdef __APPLE_QUARTZ__
@@ -133,7 +134,9 @@ void Fl_Window::draw() {
x(savex);
}
-void Fl_Window::label(const char *name) {label(name, iconlabel());}
+void Fl_Window::label(const char *name) {
+ label(name, iconlabel());
+}
void Fl_Window::copy_label(const char *a) {
if (flags() & COPIED_LABEL) {
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index ed0a41c34..3f6e3a052 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -1303,7 +1303,7 @@ Fl_X* Fl_X::make(Fl_Window* w) {
Fl::e_number = old_event;
w->redraw(); // force draw to happen
}
- // If we've captured the mouse, we dont want do activate any
+ // If we've captured the mouse, we dont want to activate any
// other windows from the code, or we loose the capture.
ShowWindow(x->xid, !showit ? SW_SHOWMINNOACTIVE :
(Fl::grab() || (style & WS_POPUP)) ? SW_SHOWNOACTIVATE : SW_SHOWNORMAL);