Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs349_w18_examples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sam Kantor
cs349_w18_examples
Commits
7de300dc
Commit
7de300dc
authored
7 years ago
by
Keiko Katsuragawa
Browse files
Options
Downloads
Patches
Plain Diff
use sleep instead of usleep
parent
17cff402
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
x/1-4-Drawing/drawing.min.cpp
+2
-2
2 additions, 2 deletions
x/1-4-Drawing/drawing.min.cpp
with
2 additions
and
2 deletions
x/1-4-Drawing/drawing.min.cpp
+
2
−
2
View file @
7de300dc
...
@@ -33,8 +33,8 @@ int main( int argc, char* argv[] ) {
...
@@ -33,8 +33,8 @@ int main( int argc, char* argv[] ) {
XMapRaised
(
display
,
window
);
XMapRaised
(
display
,
window
);
XFlush
(
display
);
XFlush
(
display
);
// give server
10ms to get
set
up
before sending drawing commands
// give server
time to
setup
u
sleep
(
1
0
*
1000
);
sleep
(
1
);
// drawing demo with graphics context here ...
// drawing demo with graphics context here ...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment