Yeah, the library should be cleaned up.. It's a bit messy.. But this is a great starting point for everyone needing a display for due..
Here's one more thing, when using samples (or doing your own) - you need to change bitmap definitions a bit to make it work.. For example, tux.c in UTFT_Rotate_Bitmap example:
// Generated by : ImageConverter 565 v1.0
// Generated from: tux.png
// Time generated: 11.10.2010 22:51:32
// Size : 2 048 Bytes
//#include <avr/pgmspace.h>
const unsigned int tux[0x400] = {
0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xE73C, 0x9CD3, 0x9CF3, 0xA514, // 0x0010 (16)
it should start like this..
comment out #include <avr/pgmspace.h>
and change variable definition to:
const unsigned int varname = {