mirror of
https://github.com/fltk/fltk.git
synced 2026-06-05 16:12:13 +08:00
fl_line_style() didn't use the same default cap and join options
for WIN32 and X11. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1624 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -12,6 +12,9 @@ CHANGES IN FLTK 1.1.0b3
|
|||||||
- Now save and restore the GDI pen object when
|
- Now save and restore the GDI pen object when
|
||||||
responding to WIN32 paint messages.
|
responding to WIN32 paint messages.
|
||||||
|
|
||||||
|
- fl_line_style() used different default cap and join
|
||||||
|
options for WIN32 and X11.
|
||||||
|
|
||||||
|
|
||||||
CHANGES IN FLTK 1.1.0b2
|
CHANGES IN FLTK 1.1.0b2
|
||||||
|
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
|
|
||||||
void fl_line_style(int style, int width, char* dashes) {
|
void fl_line_style(int style, int width, char* dashes) {
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
static DWORD Cap[4]= {PS_ENDCAP_ROUND, PS_ENDCAP_FLAT, PS_ENDCAP_ROUND, PS_ENDCAP_SQUARE};
|
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};
|
static DWORD Join[4]={PS_JOIN_MITER, PS_JOIN_MITER, PS_JOIN_ROUND, PS_JOIN_BEVEL};
|
||||||
int s1 = PS_GEOMETRIC | Cap[(style>>8)&3] | Join[(style>>12)&3];
|
int s1 = PS_GEOMETRIC | Cap[(style>>8)&3] | Join[(style>>12)&3];
|
||||||
DWORD a[16]; int n = 0;
|
DWORD a[16]; int n = 0;
|
||||||
if (dashes && dashes[0]) {
|
if (dashes && dashes[0]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user