Subversion Repositories Kolibri OS

Rev

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

Rev 878 Rev 879
Line 28... Line 28...
28
 
28
 
Line 29... Line 29...
29
  if(action != 1)
29
  if(action != 1)
30
    return 0;
30
    return 0;
Line 31... Line 31...
31
 
31
 
32
  if(!dbg_open("/hd0/2/ati2d.log"))
32
  if(!dbg_open("/rd/1/drivers/ati2d.log"))
33
  {
33
  {
34
     printf("Can't open /rd/1/drivers/ati2d.log\nExit\n");
34
     printf("Can't open /rd/1/drivers/ati2d.log\nExit\n");
35
     return 0;
35
     return 0;
36
  }
36
  }
37
  if( GetScreenBpp() != 32)
37
  if( GetScreenBpp() != 32)
38
  {
38
  {
39
     printf("32 bpp dispaly mode required !\nExit\t");
39
     dbgprintf("32 bpp dispaly mode required !\nExit\t");
40
     return 0;
40
     return 0;
Line 41... Line 41...
41
  }
41
  }
42
 
42
 
Line 80... Line 80...
80
 
80
 
Line 81... Line 81...
81
#define SRV_GETVERSION  0
81
#define SRV_GETVERSION  0
Line 82... Line 82...
82
 
82
 
83
 
83
 
84
int _stdcall srv_2d(ioctl_t *io)
84
int __stdcall srv_2d(ioctl_t *io)
85
{
85
{
Line 86... Line 86...
86
  u32_t *inp;
86
  u32_t *inp;
Line 108... Line 108...
108
        if(io->inp_size==7)
108
        if(io->inp_size==7)
109
          return DestroyPixmap((pixmap_t*)inp);
109
          return DestroyPixmap((pixmap_t*)inp);
110
        break;
110
        break;
111
 
111
 
Line -... Line 112...
-
 
112
      case PX_CLEAR:
-
 
113
        if(io->inp_size==2)
-
 
114
          return ClearPixmap((io_clear_t*)inp);
-
 
115
        break;
-
 
116
 
112
      case PX_DRAW_RECT:
117
      case PX_DRAW_RECT:
113
        if(io->inp_size==7)
118
        if(io->inp_size==7)
114
          return DrawRect((draw_t*)inp);
119
          return DrawRect((io_draw_t*)inp);
115
        break;
120
        break;
Line 116... Line 121...
116
 
121
 
117
      case PX_FILL_RECT:
122
      case PX_FILL_RECT:
118
        if(io->inp_size==9)
123
        if(io->inp_size==10)
119
          return FillRect((fill_t*)inp);
124
          return FillRect((io_fill_t*)inp);
Line 120... Line 125...
120
        break;
125
        break;
121
 
126
 
122
      case PX_BLIT:
127
      case PX_BLIT:
123
        if(io->inp_size==8)
128
        if(io->inp_size==8)
Line 124... Line 129...
124
          return PixBlit((pixblit_t*)inp);
129
          return Blit((io_blit_t*)inp);
125
        break;
130
        break;
126
 
131
 
127
     case  PX_BLIT_TRANSPARENT:
132
     case  PX_BLIT_TRANSPARENT:
Line 128... Line 133...
128
        if(io->inp_size==8)
133
        if(io->inp_size==9)
129
          return TransBlit((pixblit_t*)inp);
134
          return BlitTransparent((io_blit_t*)inp);
130
        break;
135
        break;
131
 
136
 
Line 132... Line 137...
132
      case PX_LINE:
137
      case PX_LINE:
133
        if(io->inp_size==6)
-
 
134
          return Line((draw_t*)inp);
-
 
135
        break;
-
 
136
 
-
 
Line 137... Line 138...
137
/*
138
        if(io->inp_size==6)
138
      case BLIT:
139
          return Line((io_draw_t*)inp);
139
        if(io->inp_size==6)
140
        break;
140
          return Blit((blit_t*)inp);
141
 
Line 155... Line 156...
155
 
156
 
156
#include "init.c"
157
#include "init.c"
157
#include "pci.c"
158
#include "pci.c"
158
#include "ati_mem.c"
-
 
Line 159... Line 159...
159
//#include "cursor.inc"
159
#include "ati_mem.c"
Line 160... Line 160...
160
 
160
 
161
#include "r500.inc"
161
#include "r500.inc"
162
 
162
 
163
#include "clip.inc"
163
#include "clip.inc"