aboutsummaryrefslogtreecommitdiffstats
path: root/fb-gui.c
diff options
context:
space:
mode:
authorkraxel <kraxel>2006-06-13 15:06:45 +0000
committerkraxel <kraxel>2006-06-13 15:06:45 +0000
commit1ba89ef4299fb9376b72286fde1994b24710067a (patch)
treee280c4649ec3833ef8f6747feecfa11fdca2b916 /fb-gui.c
parent8992ff2c2c6e60d88f0e22a048f343947c458cc3 (diff)
downloadfbida-1ba89ef4299fb9376b72286fde1994b24710067a.tar.gz
64bit fix
Diffstat (limited to 'fb-gui.c')
-rw-r--r--fb-gui.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fb-gui.c b/fb-gui.c
index 67a3412..bb9ebbb 100644
--- a/fb-gui.c
+++ b/fb-gui.c
@@ -3,6 +3,7 @@
#include <string.h>
#include <math.h>
#include <wchar.h>
+#include <inttypes.h>
#include <sys/ioctl.h>
#include <linux/fb.h>
@@ -130,9 +131,9 @@ static void shadow_lut_init(int depth)
static void shadow_render_line(int line, unsigned char *dest, char unsigned *buffer)
{
- unsigned char *ptr = (void*)dest;
- unsigned short *ptr2 = (void*)dest;
- unsigned long *ptr4 = (void*)dest;
+ uint8_t *ptr = (void*)dest;
+ uint16_t *ptr2 = (void*)dest;
+ uint32_t *ptr4 = (void*)dest;
int x;
switch (fb_var.bits_per_pixel) {