Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
b41e4e69
Commit
b41e4e69
authored
Jan 15, 2010
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macOSX: fixed GetMBarHeight( ) problem.
parent
5eddb1f4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
3d_frame.cpp
3d-viewer/3d_frame.cpp
+3
-4
basicframe.cpp
common/basicframe.cpp
+3
-3
No files found.
3d-viewer/3d_frame.cpp
View file @
b41e4e69
...
@@ -145,11 +145,10 @@ void WinEDA3D_DrawFrame::GetSettings()
...
@@ -145,11 +145,10 @@ void WinEDA3D_DrawFrame::GetSettings()
config
->
Read
(
wxT
(
"BgColor_Blue"
),
config
->
Read
(
wxT
(
"BgColor_Blue"
),
&
g_Parm_3D_Visu
.
m_BgColor
.
m_Blue
,
0.0
);
&
g_Parm_3D_Visu
.
m_BgColor
.
m_Blue
,
0.0
);
}
}
#if defined( __WXMAC__ ) && !defined( __WXOSX_COCOA__ )
#if defined( __WXMAC__ )
// for macOSX, the window must be below system (macOSX) toolbar
// for macOSX, the window must be below system (macOSX) toolbar
if
(
m_FramePos
.
y
<
GetMBarHeight
()
)
if
(
m_FramePos
.
y
<
20
)
m_FramePos
.
y
=
GetMBarHeight
()
;
m_FramePos
.
y
=
20
;
#endif
#endif
}
}
...
...
common/basicframe.cpp
View file @
b41e4e69
...
@@ -106,10 +106,10 @@ void WinEDA_BasicFrame::LoadSettings()
...
@@ -106,10 +106,10 @@ void WinEDA_BasicFrame::LoadSettings()
}
}
// Ensure Window title bar is visible
// Ensure Window title bar is visible
#if defined( __WXMAC__ ) && !defined( __WXOSX_COCOA__ )
#if defined( __WXMAC__ )
// for macOSX, the window must be below system (macOSX) toolbar
// for macOSX, the window must be below system (macOSX) toolbar
Ypos_min
=
GetMBarHeight
();
// Ypos_min = GetMBarHeight(); seems no more exist in ne API (subject to change)
Ypos_min
=
20
;
#else
#else
Ypos_min
=
0
;
Ypos_min
=
0
;
#endif
#endif
...
...
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