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
029b9483
Commit
029b9483
authored
Jul 23, 2002
by
Andreas Mohr
Committed by
Alexandre Julliard
Jul 23, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fix some spelling problems.
- Move WCUSER_SetMenuDetails to other menu related functions.
parent
87c369df
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
34 deletions
+34
-34
dialog.c
programs/wineconsole/dialog.c
+2
-4
registry.c
programs/wineconsole/registry.c
+2
-0
user.c
programs/wineconsole/user.c
+30
-30
No files found.
programs/wineconsole/dialog.c
View file @
029b9483
...
...
@@ -528,7 +528,7 @@ static BOOL select_font(struct dialog_info* di)
if
(
!
hFont
)
return
FALSE
;
if
(
config
.
cell_height
!=
di
->
font
[
size_idx
].
height
)
WINE_TRACE
(
"
select_font:
mismatched heights (%u<>%u)
\n
"
,
WINE_TRACE
(
"mismatched heights (%u<>%u)
\n
"
,
config
.
cell_height
,
di
->
font
[
size_idx
].
height
);
hOldFont
=
(
HFONT
)
SendDlgItemMessage
(
di
->
hDlg
,
IDC_FNT_PREVIEW
,
WM_GETFONT
,
0L
,
0L
);
...
...
@@ -747,7 +747,7 @@ static BOOL WINAPI WCUSER_ConfigDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPAR
/******************************************************************
* WCUSER_GetProperties
*
* Runs the dialog box to set up the winconsole options
* Runs the dialog box to set up the win
e
console options
*/
BOOL
WCUSER_GetProperties
(
struct
inner_data
*
data
,
BOOL
current
)
{
...
...
@@ -842,5 +842,3 @@ BOOL WCUSER_GetProperties(struct inner_data* data, BOOL current)
return
TRUE
;
}
programs/wineconsole/registry.c
View file @
029b9483
...
...
@@ -53,6 +53,7 @@ BOOL WINECON_RegLoad(struct config_data* cfg)
DWORD
count
;
DWORD
val
;
WINE_TRACE
(
"loading registry settings.
\n
"
);
if
(
RegOpenKey
(
HKEY_CURRENT_USER
,
wszConsole
,
&
hConKey
))
hConKey
=
0
;
count
=
sizeof
(
val
);
...
...
@@ -133,6 +134,7 @@ BOOL WINECON_RegSave(const struct config_data* cfg)
HKEY
hConKey
;
DWORD
val
;
WINE_TRACE
(
"saving registry settings.
\n
"
);
if
(
RegCreateKey
(
HKEY_CURRENT_USER
,
wszConsole
,
&
hConKey
))
{
WINE_ERR
(
"Can't open registry for saving
\n
"
);
...
...
programs/wineconsole/user.c
View file @
029b9483
...
...
@@ -82,8 +82,8 @@ static void WCUSER_FillMemDC(const struct inner_data* data, int upd_tp, int upd_
/******************************************************************
* WCUSER_NewBitmap
*
* Either the font geometry or the sb geometry has changed. we need
to recreate the
*
bitmap geometry
* Either the font geometry or the sb geometry has changed. we need
*
to recreate the bitmap geometry.
*/
static
void
WCUSER_NewBitmap
(
struct
inner_data
*
data
,
BOOL
fill
)
{
...
...
@@ -149,7 +149,7 @@ void WCUSER_ShapeCursor(struct inner_data* data, int size, int vis, BOOL force)
PRIVATE
(
data
)
->
cursor_bitmap
=
(
HBITMAP
)
0
;
if
(
size
!=
100
)
{
int
w16b
;
/* number of by
et
s per row, aligned on word size */
int
w16b
;
/* number of by
te
s per row, aligned on word size */
BYTE
*
ptr
;
int
i
,
j
,
nbl
;
...
...
@@ -193,7 +193,7 @@ void WCUSER_ShapeCursor(struct inner_data* data, int size, int vis, BOOL force)
}
/******************************************************************
*
INECON
_ComputePositions
*
WCUSER
_ComputePositions
*
* Recomputes all the components (mainly scroll bars) positions
*/
...
...
@@ -298,7 +298,7 @@ void WCUSER_DumpTextMetric(const TEXTMETRIC* tm, DWORD ft)
}
/******************************************************************
*
Font
Equal
*
WCUSER_AreFonts
Equal
*
*
*/
...
...
@@ -401,7 +401,7 @@ static int CALLBACK get_first_font_enum(const LOGFONT* lf, const TEXTMETRIC* tm,
}
/******************************************************************
* CopyFont
*
WCUSER_
CopyFont
*
* get the relevant information from the font described in lf and store them
* in config
...
...
@@ -422,15 +422,15 @@ HFONT WCUSER_CopyFont(struct config_data* config, HWND hWnd, const LOGFONT* lf)
/* FIXME:
* the current freetype engine (at least 2.0.x with x <= 8) and its implementation
* in Wine don't return adequate values for fixed fonts
* In Windows, those fonts are expecte
s
to return the same value for
* In Windows, those fonts are expecte
d
to return the same value for
* - the average width
* - the largest width
* - the width of all characters in the font
* This isn't true in Wine. As a temporary workaound, we get as the width of the
* This isn't true in Wine. As a temporary worka
r
ound, we get as the width of the
* cell, the width of the first character in the font, after checking that all
* characters in the font have the same width (I hear paranoa coming)
* when this gets fixed, the
should be using tm.tmAveCharWidth or tm.tmMax
CharWidth
* as the cell width.
* when this gets fixed, the
code should be using tm.tmAve
CharWidth
*
or tm.tmMaxCharWidth
as the cell width.
*/
GetCharWidth32
(
hDC
,
tm
.
tmFirstChar
,
tm
.
tmFirstChar
,
&
w
);
for
(
i
=
tm
.
tmFirstChar
+
1
;
i
<=
tm
.
tmLastChar
;
i
+=
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]))
...
...
@@ -557,7 +557,7 @@ static BOOL WCUSER_InitFont(struct inner_data* data)
/******************************************************************
* WCUSER_GetCell
*
* Get a cell from
the
a relative coordinate in window (takes into
* Get a cell from a relative coordinate in window (takes into
* account the scrolling)
*/
static
COORD
WCUSER_GetCell
(
const
struct
inner_data
*
data
,
LPARAM
lParam
)
...
...
@@ -723,7 +723,7 @@ static void WCUSER_PasteFromClipboard(struct inner_data* data)
}
/******************************************************************
* Refresh
*
WCUSER_
Refresh
*
*
*/
...
...
@@ -827,6 +827,24 @@ static BOOL WCUSER_FillMenu(HMENU hMenu, BOOL sep)
}
/******************************************************************
* WCUSER_SetMenuDetails
*
* Grays / ungrays the menu items according to their state
*/
static
void
WCUSER_SetMenuDetails
(
const
struct
inner_data
*
data
,
HMENU
hMenu
)
{
if
(
!
hMenu
)
{
WINE_ERR
(
"Issue in getting menu bits
\n
"
);
return
;}
EnableMenuItem
(
hMenu
,
IDS_COPY
,
MF_BYCOMMAND
|
(
PRIVATE
(
data
)
->
has_selection
?
MF_ENABLED
:
MF_GRAYED
));
EnableMenuItem
(
hMenu
,
IDS_PASTE
,
MF_BYCOMMAND
|
(
IsClipboardFormatAvailable
(
CF_UNICODETEXT
)
?
MF_ENABLED
:
MF_GRAYED
));
EnableMenuItem
(
hMenu
,
IDS_SCROLL
,
MF_BYCOMMAND
|
MF_GRAYED
);
EnableMenuItem
(
hMenu
,
IDS_SEARCH
,
MF_BYCOMMAND
|
MF_GRAYED
);
}
/******************************************************************
* WCUSER_Create
*
* Creates the window for the rendering
...
...
@@ -858,24 +876,6 @@ static LRESULT WCUSER_Create(HWND hWnd, LPCREATESTRUCT lpcs)
}
/******************************************************************
* WCUSER_SetMenuDetails
*
* Grays / ungrays the menu items according to their state
*/
static
void
WCUSER_SetMenuDetails
(
const
struct
inner_data
*
data
,
HMENU
hMenu
)
{
if
(
!
hMenu
)
{
WINE_ERR
(
"Issue in getting menu bits
\n
"
);
return
;}
EnableMenuItem
(
hMenu
,
IDS_COPY
,
MF_BYCOMMAND
|
(
PRIVATE
(
data
)
->
has_selection
?
MF_ENABLED
:
MF_GRAYED
));
EnableMenuItem
(
hMenu
,
IDS_PASTE
,
MF_BYCOMMAND
|
(
IsClipboardFormatAvailable
(
CF_UNICODETEXT
)
?
MF_ENABLED
:
MF_GRAYED
));
EnableMenuItem
(
hMenu
,
IDS_SCROLL
,
MF_BYCOMMAND
|
MF_GRAYED
);
EnableMenuItem
(
hMenu
,
IDS_SEARCH
,
MF_BYCOMMAND
|
MF_GRAYED
);
}
/******************************************************************
* CUSER_GetCtrlKeyState
*
* Get the console bit mask equivalent to the VK_ status in keyState
...
...
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