Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d24cc6aa
Commit
d24cc6aa
authored
Sep 22, 1996
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed default background yield time to 1 tick
parent
457c3f1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
Mac/Python/macglue.c
Mac/Python/macglue.c
+14
-1
No files found.
Mac/Python/macglue.c
View file @
d24cc6aa
...
...
@@ -129,7 +129,7 @@ static void PyMac_DoYield Py_PROTO((int));
static
long
interval_fg
=
12
;
static
long
interval_bg
=
6
;
static
long
yield_fg
=
1
;
static
long
yield_bg
=
1
2
;
static
long
yield_bg
=
2
;
static
long
lastyield
;
static
int
in_foreground
;
...
...
@@ -543,10 +543,23 @@ void
SIOUXDoAboutBox
(
void
)
{
DialogPtr
theDialog
;
WindowRef
theWindow
;
CGrafPtr
thePort
;
short
item
;
short
xpos
,
ypos
,
width
,
height
,
swidth
,
sheight
;
if
(
(
theDialog
=
GetNewDialog
(
ABOUT_ID
,
NULL
,
(
WindowPtr
)
-
1
))
==
NULL
)
return
;
theWindow
=
GetDialogWindow
(
theDialog
);
thePort
=
GetWindowPort
(
theWindow
);
width
=
thePort
->
portRect
.
right
-
thePort
->
portRect
.
left
;
height
=
thePort
->
portRect
.
bottom
-
thePort
->
portRect
.
top
;
swidth
=
qd
.
screenBits
.
bounds
.
right
-
qd
.
screenBits
.
bounds
.
left
;
sheight
=
qd
.
screenBits
.
bounds
.
bottom
-
qd
.
screenBits
.
bounds
.
top
-
LMGetMBarHeight
();
xpos
=
(
swidth
-
width
)
/
2
;
ypos
=
(
sheight
-
height
)
/
2
+
LMGetMBarHeight
();
MoveWindow
(
theWindow
,
xpos
,
ypos
,
0
);
ShowWindow
(
theWindow
);
ModalDialog
(
NULL
,
&
item
);
DisposeDialog
(
theDialog
);
}
...
...
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