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
8f2e7068
Commit
8f2e7068
authored
Mar 21, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
const of GetZoom()
parent
57126e83
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
21 deletions
+22
-21
base_screen.cpp
common/base_screen.cpp
+22
-21
No files found.
common/base_screen.cpp
View file @
8f2e7068
...
@@ -174,28 +174,30 @@ wxSize BASE_SCREEN::ReturnPageSize()
...
@@ -174,28 +174,30 @@ wxSize BASE_SCREEN::ReturnPageSize()
}
}
/********************************************/
/********************************************
******
/
void
BASE_SCREEN
::
SetZoomList
(
int
*
zoomlist
)
void
BASE_SCREEN
::
SetZoomList
(
const
int
*
zoomlist
)
/********************************************/
/********************************************
******
/
/* init liste des zoom (NULL terminated)
/* init liste des zoom (NULL terminated)
*/
*/
{
{
int
ii
,
nbitems
,
*
zoom
;
int
nbitems
;
const
int
*
zoom
;
//
Decompte des items
//
get list length
for
(
nbitems
=
1
,
zoom
=
zoomlist
;
;
zoom
++
,
nbitems
++
)
for
(
nbitems
=
1
,
zoom
=
zoomlist
;
;
zoom
++
,
nbitems
++
)
{
{
if
(
*
zoom
==
0
)
if
(
*
zoom
==
0
)
break
;
break
;
}
}
//
Init liste
//
resize our list
if
(
m_ZoomList
)
if
(
m_ZoomList
)
free
(
m_ZoomList
);
free
(
m_ZoomList
);
m_ZoomList
=
(
int
*
)
MyZMalloc
(
nbitems
*
sizeof
(
int
)
);
m_ZoomList
=
(
int
*
)
MyZMalloc
(
nbitems
*
sizeof
(
int
)
);
int
ii
;
for
(
ii
=
0
,
zoom
=
zoomlist
;
ii
<
nbitems
;
zoom
++
,
ii
++
)
for
(
ii
=
0
,
zoom
=
zoomlist
;
ii
<
nbitems
;
zoom
++
,
ii
++
)
{
{
m_ZoomList
[
ii
]
=
*
zoom
;
m_ZoomList
[
ii
]
=
*
zoom
;
...
@@ -212,10 +214,9 @@ void BASE_SCREEN::SetFirstZoom()
...
@@ -212,10 +214,9 @@ void BASE_SCREEN::SetFirstZoom()
}
}
/****************************/
/******************************/
int
BASE_SCREEN
::
GetZoom
()
int
BASE_SCREEN
::
GetZoom
()
const
/****************************/
/******************************/
/* retourne le coeff de zoom */
{
{
return
m_Zoom
;
return
m_Zoom
;
}
}
...
...
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