summaryrefslogtreecommitdiff
path: root/libwinnie/src
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-01-06 05:38:46 -0500
committerRaghuram Subramani <raghus2247@gmail.com>2025-01-06 05:38:46 -0500
commit906913017f569363bed0657458f285a93c062221 (patch)
tree8eb48107b4768d323996841a4ae4c3eafc81388b /libwinnie/src
parent24cb8fdf06da775f223c63f2d5708693e48550e6 (diff)
get it to compile on a modern system
Diffstat (limited to 'libwinnie/src')
-rw-r--r--libwinnie/src/sdl/gfx.cc2
-rw-r--r--libwinnie/src/semaphore.cc22
-rw-r--r--libwinnie/src/semaphore.h28
-rw-r--r--libwinnie/src/text.cc2
4 files changed, 2 insertions, 52 deletions
diff --git a/libwinnie/src/sdl/gfx.cc b/libwinnie/src/sdl/gfx.cc
index edce8ba..9f31a4e 100644
--- a/libwinnie/src/sdl/gfx.cc
+++ b/libwinnie/src/sdl/gfx.cc
@@ -52,7 +52,7 @@ bool init_gfx()
get_subsys()->graphics_offset = (int)((char*)gfx - (char*)get_pool());
- Rect scr_rect(0, 0, 1024, 768);
+ Rect scr_rect(0, 0, 1280, 853);
gfx->screen_rect = scr_rect;
gfx->color_depth = 32;
diff --git a/libwinnie/src/semaphore.cc b/libwinnie/src/semaphore.cc
deleted file mode 100644
index d686ba0..0000000
--- a/libwinnie/src/semaphore.cc
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
-winnie - an experimental window system
-
-Copyright (C) 2013 Eleni Maria Stea
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-Author: Eleni Maria Stea <elene.mst@gmail.com>
-*/
-
-#include "semaphore.h"
diff --git a/libwinnie/src/semaphore.h b/libwinnie/src/semaphore.h
deleted file mode 100644
index 1ab8920..0000000
--- a/libwinnie/src/semaphore.h
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
-winnie - an experimental window system
-
-Copyright (C) 2013 Eleni Maria Stea
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-Author: Eleni Maria Stea <elene.mst@gmail.com>
-*/
-
-#ifndef SEMAPHORE_H_
-#define SEMAPHORE_H_
-
-bool init_semaphore();
-void destroy_semaphore();
-
-#endif // SEMAPHORE_H_
diff --git a/libwinnie/src/text.cc b/libwinnie/src/text.cc
index 3d6ab0c..345a857 100644
--- a/libwinnie/src/text.cc
+++ b/libwinnie/src/text.cc
@@ -28,7 +28,7 @@ Author: Eleni Maria Stea <elene.mst@gmail.com>
#include "winnie.h"
#define DPI 72
-#define FONT_PATH "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf"
+#define FONT_PATH "/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf"
#define FONT_SIZE 16
static int draw_glyph(Pixmap *pixmap, int x, int y, char c);