Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
345acc90
Commit
345acc90
authored
Dec 24, 2000
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 24, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated the look of dots and dashes to match the Win32 look.
Issue a FIXME about PS_USERSTYLE.
parent
b6ac770f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
pen.c
graphics/x11drv/pen.c
+8
-6
painting.c
windows/painting.c
+1
-1
No files found.
graphics/x11drv/pen.c
View file @
345acc90
...
@@ -11,11 +11,13 @@
...
@@ -11,11 +11,13 @@
#include "x11drv.h"
#include "x11drv.h"
#include "debugtools.h"
#include "debugtools.h"
static
const
char
PEN_dash
[]
=
{
5
,
3
};
/* ----- ----- ----- */
DEFAULT_DEBUG_CHANNEL
(
x11drv
);
static
const
char
PEN_dot
[]
=
{
1
,
1
};
/* -- -- -- -- -- -- */
static
const
char
PEN_dashdot
[]
=
{
4
,
3
,
2
,
3
};
/* ---- -- ---- -- */
static
const
char
PEN_dash
[]
=
{
16
,
8
};
static
const
char
PEN_dashdotdot
[]
=
{
4
,
2
,
2
,
2
,
2
,
2
};
/* ---- -- -- ---- */
static
const
char
PEN_dot
[]
=
{
4
,
4
};
static
const
char
PEN_alternate
[]
=
{
1
,
1
};
/* FIXME */
static
const
char
PEN_dashdot
[]
=
{
12
,
8
,
4
,
8
};
static
const
char
PEN_dashdotdot
[]
=
{
12
,
4
,
4
,
4
,
4
,
4
};
static
const
char
PEN_alternate
[]
=
{
1
,
1
};
/***********************************************************************
/***********************************************************************
* PEN_SelectObject
* PEN_SelectObject
...
@@ -59,7 +61,7 @@ HPEN X11DRV_PEN_SelectObject( DC * dc, HPEN hpen, PENOBJ * pen )
...
@@ -59,7 +61,7 @@ HPEN X11DRV_PEN_SelectObject( DC * dc, HPEN hpen, PENOBJ * pen )
physDev
->
pen
.
dash_len
=
sizeof
(
PEN_alternate
)
/
sizeof
(
*
PEN_alternate
);
physDev
->
pen
.
dash_len
=
sizeof
(
PEN_alternate
)
/
sizeof
(
*
PEN_alternate
);
break
;
break
;
case
PS_USERSTYLE
:
case
PS_USERSTYLE
:
/* FIXME */
FIXME
(
"PS_USERSTYLE is not supported
\n
"
);
break
;
break
;
}
}
...
...
windows/painting.c
View file @
345acc90
...
@@ -1355,7 +1355,7 @@ BOOL WINAPI DrawFocusRect( HDC hdc, const RECT* rc )
...
@@ -1355,7 +1355,7 @@ BOOL WINAPI DrawFocusRect( HDC hdc, const RECT* rc )
INT
oldDrawMode
,
oldBkMode
;
INT
oldDrawMode
,
oldBkMode
;
hOldBrush
=
SelectObject
(
hdc
,
GetStockObject
(
NULL_BRUSH
));
hOldBrush
=
SelectObject
(
hdc
,
GetStockObject
(
NULL_BRUSH
));
hNewPen
=
CreatePen
(
PS_
DOT
,
1
,
GetSysColor
(
COLOR_WINDOWTEXT
));
hNewPen
=
CreatePen
(
PS_
ALTERNATE
,
1
,
GetSysColor
(
COLOR_WINDOWTEXT
));
hOldPen
=
SelectObject
(
hdc
,
hNewPen
);
hOldPen
=
SelectObject
(
hdc
,
hNewPen
);
oldDrawMode
=
SetROP2
(
hdc
,
R2_XORPEN
);
oldDrawMode
=
SetROP2
(
hdc
,
R2_XORPEN
);
oldBkMode
=
SetBkMode
(
hdc
,
TRANSPARENT
);
oldBkMode
=
SetBkMode
(
hdc
,
TRANSPARENT
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment