Changeset 19
- Timestamp:
- Nov 10, 2005, 11:01:43 PM (17 years ago)
- Location:
- abuse/trunk/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/imlib/image.cpp
r17 r19 417 417 } 418 418 419 void image::fill_image(image *screen, int16_t x1, int16_t y1, int16_t x2, int16_t y2, int16_t al lign)419 void image::fill_image(image *screen, int16_t x1, int16_t y1, int16_t x2, int16_t y2, int16_t align) 420 420 { 421 421 int16_t i,j,w,xx,start,xl,starty; … … 439 439 screen->add_dirty(x1,y1,x2,y2); 440 440 w=width(); 441 if (al lign)441 if (align) 442 442 { 443 443 start=x1%w; -
abuse/trunk/src/imlib/include/image.hpp
r17 r19 119 119 void scroll (int16_t x1, int16_t y1, int16_t x2, int16_t y2, int16_t xd, int16_t yd); 120 120 void fill_image (image *screen, int16_t x1, int16_t y1, int16_t x2, int16_t y2, 121 int16_t al lign=1);121 int16_t align=1); 122 122 void put_image (image *screen, int16_t x, int16_t y, char transparent=0); 123 123 void put_part (image *screen, int16_t x, int16_t y, int16_t x1, int16_t y1, -
abuse/trunk/src/imlib/readwav.cpp
r17 r19 92 92 fp->write_uint32(sample_rate); 93 93 fp->write_uint32(sample_rate); // average bytes per sec 94 fp->write_uint16(1); // al lignment? Don't know what this does?94 fp->write_uint16(1); // alignment? Don't know what this does? 95 95 fp->write_uint16(8); // 8 bits per sample 96 96 … … 155 155 ERROR(pcm.bitsps==8,"Only 8-bit samples supported"); 156 156 ERROR(pcm.wf.channels==1,"Only mono samples supported"); 157 ERROR(pcm.wf.align==1,"Bad block al lignment");157 ERROR(pcm.wf.align==1,"Bad block alignment"); 158 158 delete fp; 159 159 return data; -
abuse/trunk/src/include/bus_type.hpp
r2 r19 3 3 4 4 #ifdef __sgi 5 #define WORD_AL LIGN 15 #define WORD_ALIGN 1 6 6 #endif 7 7 8 8 #ifdef sun 9 #define WORD_AL LIGN 19 #define WORD_ALIGN 1 10 10 #endif 11 11 12 12 #ifdef SUN3 13 #define WORD_AL LIGN 113 #define WORD_ALIGN 1 14 14 #endif 15 15 16 16 #ifdef SUN4 17 #define WORD_AL LIGN 117 #define WORD_ALIGN 1 18 18 #endif 19 19 20 20 #ifdef __sgi 21 #define WORD_AL LIGN 121 #define WORD_ALIGN 1 22 22 #endif 23 23 24 24 #ifdef _AIX 25 #define WORD_AL LIGN 125 #define WORD_ALIGN 1 26 26 #endif 27 27 28 28 #ifdef __sparc__ 29 #define WORD_AL LIGN 129 #define WORD_ALIGN 1 30 30 #endif 31 31 32 32 #ifdef __arm__ 33 #define WORD_AL LIGN 133 #define WORD_ALIGN 1 34 34 #endif 35 35 -
abuse/trunk/src/include/lisp.hpp
r16 r19 38 38 39 39 typedef uint64_t ltype; // make sure structures aren't packed differently on various compiler 40 // and sure that word, etc are word al ligned40 // and sure that word, etc are word aligned 41 41 42 42 struct lisp_object_var -
abuse/trunk/src/lcache.cpp
r17 r19 36 36 else ret=0; 37 37 } 38 #ifdef WORD_AL LIGN38 #ifdef WORD_ALIGN 39 39 return (ret+3)&(~3); 40 40 #else -
abuse/trunk/src/lisp.cpp
r17 r19 172 172 void *lmalloc(int size, int which_space) 173 173 { 174 #ifdef WORD_AL LIGN174 #ifdef WORD_ALIGN 175 175 size=(size+3)&(~3); 176 176 #endif
Note: See TracChangeset
for help on using the changeset viewer.