summaryrefslogtreecommitdiff
path: root/src/fl_line_style.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2003-01-12 14:49:33 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2003-01-12 14:49:33 +0000
commit24455b9be53b712e6b1145612ebcbfb302ec1174 (patch)
treec7ec1a8f198e9c65612908beacd36d2f45a39344 /src/fl_line_style.cxx
parentd43b146df3dc86053e111da818620f35873824bf (diff)
Fix use of free() for memory allocated using new.
Fix error messages to use Fl::error() instead of fprintf(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2898 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_line_style.cxx')
-rw-r--r--src/fl_line_style.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/fl_line_style.cxx b/src/fl_line_style.cxx
index 314986db1..135bfe625 100644
--- a/src/fl_line_style.cxx
+++ b/src/fl_line_style.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: fl_line_style.cxx,v 1.3.2.3.2.10 2002/04/11 11:52:42 easysw Exp $"
+// "$Id: fl_line_style.cxx,v 1.3.2.3.2.11 2003/01/12 14:49:33 easysw Exp $"
//
// Line style code for the Fast Light Tool Kit (FLTK).
//
@@ -47,8 +47,7 @@ void fl_line_style(int style, int width, char* dashes) {
LOGBRUSH penbrush = {BS_SOLID,fl_RGB(),0}; // can this be fl_brush()?
HPEN newpen = ExtCreatePen(s1, width, &penbrush, n, n ? a : 0);
if (!newpen) {
- // CET - FIXME - remove this debug fprintf()?
- fprintf(stderr, "fl_line_style(): Could not create GDI pen object.\n");
+ Fl::error("fl_line_style(): Could not create GDI pen object.");
return;
}
HPEN oldpen = (HPEN)SelectObject(fl_gc, newpen);
@@ -104,5 +103,5 @@ void fl_line_style(int style, int width, char* dashes) {
//
-// End of "$Id: fl_line_style.cxx,v 1.3.2.3.2.10 2002/04/11 11:52:42 easysw Exp $".
+// End of "$Id: fl_line_style.cxx,v 1.3.2.3.2.11 2003/01/12 14:49:33 easysw Exp $".
//