Subversion Repositories Kolibri OS

Rev

Rev 882 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 882 Rev 1002
Line -... Line 1...
-
 
1
//#define KOLIBRI_PE
-
 
2
 
1
#include "types.h"
3
#include "types.h"
2
#include "system.h"
4
#include "system.h"
Line 3... Line 5...
3
 
5
 
Line 62... Line 64...
62
 
64
 
Line 63... Line 65...
63
     scrn_pixmap.width   = scrnsize >> 16;
65
     scrn_pixmap.width   = scrnsize >> 16;
64
     scrn_pixmap.height  = scrnsize & 0xFFFF;
66
     scrn_pixmap.height  = scrnsize & 0xFFFF;
65
     scrn_pixmap.format  = PICT_a8r8g8b8;
67
     scrn_pixmap.format  = PICT_a8r8g8b8;
66
     scrn_pixmap.flags   = 0;
68
     scrn_pixmap.flags   = PX_MEM_LOCAL;
67
     scrn_pixmap.pitch   = scrnpitch;
69
     scrn_pixmap.pitch   = scrnpitch;
68
     scrn_pixmap.mapped  = (void*)0xFE000000;
70
     scrn_pixmap.mapped  = (void*)LFB_BASE;
Line 69... Line 71...
69
 
71
 
70
     br_slab.available = 256;
72
     br_slab.available = 256;
71
     br_slab.start = brushes;
73
     br_slab.start = brushes;
Line 127... Line 129...
127
char szDrawRect[]        = "DrawRect";
129
char szDrawRect[]        = "DrawRect";
128
char szFillRect[]        = "FillRect";
130
char szFillRect[]        = "FillRect";
129
char szBlit[]            = "Blit";
131
char szBlit[]            = "Blit";
130
char szTransparentBlit[] = "TransparentBlit";
132
char szTransparentBlit[] = "TransparentBlit";
131
 
133
char szBlitAlpha[]       = "BlitAlpha";
-
 
134
 
Line 132... Line 135...
132
 
135
 
133
export_t EXPORTS[] __asm__("EXPORTS") =
136
export_t EXPORTS[] __asm__("EXPORTS") =
134
         {
137
         {
Line 153... Line 156...
153
           { szDrawRect,        DrawRect        },
156
           { szDrawRect,        DrawRect        },
154
           { szFillRect,        FillRect        },
157
           { szFillRect,        FillRect        },
155
           { szBlit,            Blit            },
158
           { szBlit,            Blit            },
156
           { szTransparentBlit, TransparentBlit },
159
           { szTransparentBlit, TransparentBlit },
157
 
160
           { szBlitAlpha,       BlitAlpha       },
-
 
161
 
Line 158... Line 162...
158
           { NULL, NULL },
162
           { NULL, NULL },
159
         };
163
         };