summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2001-10-19 16:26:51 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2001-10-19 16:26:51 +0000
commitf31fe66f8cc45b6a641a6271e8fee0f74f7a3053 (patch)
tree9bb5695133e6d31d00c10640e9ecc76696b4ac86 /src
parent461002c3ad062ea4a34c2694cce40a6a7190967e (diff)
Put all OpenGL stuff back in FLTKDLL; no separate shared
libraries under WIN32 since WIN32 is so braindead about export/import crap anyways... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1642 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/fl_line_style.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fl_line_style.cxx b/src/fl_line_style.cxx
index 65993abe1..9122a2f5f 100644
--- a/src/fl_line_style.cxx
+++ b/src/fl_line_style.cxx
@@ -12,7 +12,7 @@ void fl_line_style(int style, int width, char* dashes) {
// they should be different (same graphics cards, etc., right?) MRS
static DWORD Cap[4]= {PS_ENDCAP_FLAT, PS_ENDCAP_FLAT, PS_ENDCAP_ROUND, PS_ENDCAP_SQUARE};
static DWORD Join[4]={PS_JOIN_ROUND, PS_JOIN_MITER, PS_JOIN_ROUND, PS_JOIN_BEVEL};
- int s1 = PS_GEOMETRIC | Cap[(style>>8)&3] | Join[(style>>12)&3];
+ int s1 = Cap[(style>>8)&3] | Join[(style>>12)&3];
DWORD a[16]; int n = 0;
if (dashes && dashes[0]) {
s1 |= PS_USERSTYLE;
@@ -21,6 +21,8 @@ void fl_line_style(int style, int width, char* dashes) {
s1 |= style & 0xff; // allow them to pass any low 8 bits for style
}
if ((style || n) && !width) width = 1; // fix cards that do nothing for 0?
+ if (width > 1) s1 |= PS_GEOMETRIC;
+ else s1 |= PS_COSMETIC;
LOGBRUSH penbrush = {BS_SOLID,fl_RGB(),0}; // can this be fl_brush()?
HPEN newpen = ExtCreatePen(s1, width, &penbrush, n, n ? a : 0);
if (!newpen) {