Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Fehlersuche_U7
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
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Gräbner
Fehlersuche_U7
Commits
20c42654
Commit
20c42654
authored
18 years ago
by
siflfran
Browse files
Options
Downloads
Patches
Plain Diff
Kreisbla angefangen
parent
dc5253f6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
01_git/beo.astimerc
+2
-2
2 additions, 2 deletions
01_git/beo.astimerc
01_git/x_primitives.c
+22
-0
22 additions, 0 deletions
01_git/x_primitives.c
01_git/x_primitives.h
+4
-0
4 additions, 0 deletions
01_git/x_primitives.h
with
28 additions
and
2 deletions
01_git/beo.astimerc
+
2
−
2
View file @
20c42654
...
...
@@ -26,7 +26,7 @@ outThickness 1
fancyHands 1
outlinedHands 0
neonHands
0
neonHands
1
#execProg "xterm +sb -bg "#303030" -fg "#20b2aa" -geometry 80x50 -T top -n top -e top &"
withdrawn 0
...
...
@@ -43,6 +43,6 @@ title astime
twentyfourHour 1
sunriset 1
sunrisetDay orange
sunrisetNight
black
sunrisetNight
grey20
latitude 11.05
longitude 49.6972222
This diff is collapsed.
Click to expand it.
01_git/x_primitives.c
+
22
−
0
View file @
20c42654
...
...
@@ -78,3 +78,25 @@ int FillCenteredArc(Display *display, Drawable d, GC gc,
return
XFillArc
(
display
,
d
,
gc
,
x
-
width
,
y
-
height
,
2
*
width
,
2
*
height
,
angle1
,
angle2
);
}
int
DrawTopCircle
(
Display
*
display
,
Drawable
d
,
GC
gc
,
int
x
,
int
y
,
unsigned
int
radius
,
int
angle
)
{
short
coord_x
,
coord_y
,
center_x
,
center_y
;
double
r_angle
;
r_angle
=
(
angle
/
64
)
*
(
M_PI
/
180
.
0
);
coord_x
=
x
;
coord_y
=
y
;
center_x
=
coord_x
*
cos
(.
5
*
M_PI
-
r_angle
);
center_y
=
coord_y
*
sin
(.
5
*
M_PI
-
r_angle
);
RotateCoordinates
(
&
coord_x
,
&
coord_y
,
center_x
,
center_y
,
angle
);
coord_x
-=
radius
;
return
XDrawArc
(
display
,
d
,
gc
,
coord_x
,
coord_y
,
2
*
radius
,
2
*
radius
,
0
,
360
*
64
);
}
int
FillTopCircle
(
Display
*
display
,
Drawable
d
,
GC
gc
,
int
x
,
int
y
,
unsigned
int
radius
,
int
angle
)
{
return
XFillArc
(
display
,
d
,
gc
,
x
-
radius
,
y
,
2
*
radius
,
2
*
radius
,
0
,
360
*
64
);
}
This diff is collapsed.
Click to expand it.
01_git/x_primitives.h
+
4
−
0
View file @
20c42654
...
...
@@ -18,3 +18,7 @@ int DrawCenteredArc(Display *display, Drawable d, GC gc,
int
FillCenteredArc
(
Display
*
display
,
Drawable
d
,
GC
gc
,
int
x
,
int
y
,
unsigned
int
width
,
unsigned
int
height
,
int
angle1
,
int
angle2
);
int
DrawTopCircle
(
Display
*
display
,
Drawable
d
,
GC
gc
,
int
x
,
int
y
,
unsigned
int
radius
,
int
angle
);
int
FillTopCircle
(
Display
*
display
,
Drawable
d
,
GC
gc
,
int
x
,
int
y
,
unsigned
int
radius
,
int
angle
);
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