Subversion Repositories Kolibri OS

Rev

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

Rev 815 Rev 817
Line 84... Line 84...
84
  return retval;
84
  return retval;
85
};
85
};
86
 
86
 
Line 87... Line -...
87
 
-
 
88
#define ERR_PARAM  -1
-
 
89
 
87
 
Line 90... Line 88...
90
#pragma pack (push,1)
88
#pragma pack (push,1)
Line 91... Line 89...
91
 
89
 
Line 138... Line 136...
138
      }
136
      }
139
      break;
137
      break;
140
 
138
 
Line 141... Line 139...
141
      case DRAW_RECT:
139
      case DRAW_RECT:
142
        if(io->inp_size==5)
140
        if(io->inp_size==6)
143
          return DrawRect((draw_t*)inp);
141
          return DrawRect((draw_t*)inp);
144
        break;
142
        break;
Line 145... Line 143...
145
 
143
 
146
      case FILL_RECT:
144
      case FILL_RECT:
147
        if(io->inp_size==8)
145
        if(io->inp_size==9)
148
          return FillRect((fill_t*)inp);
146
          return FillRect((fill_t*)inp);
Line 149... Line 147...
149
        break;
147
        break;
150
 
148
 
Line 163... Line 161...
163
          return RadeonComposite((blit_t*)inp);
161
          return RadeonComposite((blit_t*)inp);
164
        break;
162
        break;
165
 
163
 
Line 166... Line 164...
166
      case PIXMAP:
164
      case PIXMAP:
167
        if(io->inp_size==5)
165
        if(io->inp_size==6)
168
          return CreatePixmap((new_pixmap_t*)inp);
166
          return CreatePixmap((userpixmap_t*)inp);
169
        break;
167
        break;
Line 170... Line 168...
170
 
168
 
171
      case PIXBLIT:
169
      case PIXBLIT:
172
        if(io->inp_size==8)
170
        if(io->inp_size==8)
173
          return PixBlit((pixblit_t*)inp);
171
          return PixBlit((pixblit_t*)inp);
Line -... Line 172...
-
 
172
        break;
-
 
173
 
-
 
174
      case PIXLOCK:
-
 
175
        if(io->inp_size==6)
-
 
176
          return LockPixmap((userpixmap_t*)inp);
174
        break;
177
        break;
175
 
178
 
176
    default:
179
    default:
177
      return ERR_PARAM;
180
      return ERR_PARAM;
178
  };
181
  };
Line 179... Line 182...
179
  return ERR_PARAM;
182
  return ERR_PARAM;
180
}
183
}
181
 
184
 
182
 
185
 
Line 183... Line 186...
183
#include "init.c"
186
#include "init.c"
184
#include "pci.c"
187
#include "pci.c"
185
#include "ati_mem.c"
188
#include "ati_mem.c"