aboutsummaryrefslogtreecommitdiff
path: root/src/font.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-19 11:32:34 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-19 11:32:34 +0200
commite96f9f3869c6ea5803f5759bf1737547a46be22f (patch)
treee070f699751eebad032a47f118293ef219f1e147 /src/font.c
parent0d1af7a8c8e163250e940833d646a12852aa9e5b (diff)
downloadjwm-e96f9f3869c6ea5803f5759bf1737547a46be22f.tar.gz
Change function declaration style
This is a very sweeping change, but I feel that it is necessary.
Diffstat (limited to 'src/font.c')
-rw-r--r--src/font.c34
1 files changed, 25 insertions, 9 deletions
diff --git a/src/font.c b/src/font.c
index 8ebf19a..d296589 100644
--- a/src/font.c
+++ b/src/font.c
@@ -23,7 +23,9 @@ static GC fontGC;
/****************************************************************************
****************************************************************************/
-void InitializeFonts() {
+void
+InitializeFonts()
+{
int x;
@@ -36,7 +38,9 @@ void InitializeFonts() {
/****************************************************************************
****************************************************************************/
-void StartupFonts() {
+void
+StartupFonts()
+{
#ifndef USE_XFT
XGCValues gcValues;
@@ -102,7 +106,9 @@ void StartupFonts() {
/****************************************************************************
****************************************************************************/
-void ShutdownFonts() {
+void
+ShutdownFonts()
+{
int x;
@@ -128,7 +134,9 @@ void ShutdownFonts() {
/****************************************************************************
****************************************************************************/
-void DestroyFonts() {
+void
+DestroyFonts()
+{
int x;
@@ -143,7 +151,9 @@ void DestroyFonts() {
/****************************************************************************
****************************************************************************/
-int GetStringWidth(FontType type, const char *str) {
+int
+GetStringWidth(FontType type, const char *str)
+{
#ifdef USE_XFT
XGlyphInfo extents;
@@ -171,7 +181,9 @@ int GetStringWidth(FontType type, const char *str) {
/****************************************************************************
****************************************************************************/
-int GetStringHeight(FontType type) {
+int
+GetStringHeight(FontType type)
+{
Assert(fonts[type]);
@@ -181,7 +193,9 @@ int GetStringHeight(FontType type) {
/****************************************************************************
****************************************************************************/
-void SetFont(FontType type, const char *value) {
+void
+SetFont(FontType type, const char *value)
+{
if(!value) {
Warning("empty Font tag");
@@ -198,8 +212,10 @@ void SetFont(FontType type, const char *value) {
/****************************************************************************
****************************************************************************/
-void RenderString(Drawable d, FontType font, ColorType color,
- int x, int y, int width, Region region, const char *str) {
+void
+RenderString(Drawable d, FontType font, ColorType color,
+ int x, int y, int width, Region region, const char *str)
+{
#ifdef USE_XFT
XftDraw *xd;