Rename additional global TQt functions

master
Timothy Pearson 12 years ago
parent d9fc094ff6
commit 71504ea6ad

@ -47,7 +47,7 @@ See 0005-qpixmap_mitshm.patch for details.
- ? b << blue_shift : b >> -blue_shift; - ? b << blue_shift : b >> -blue_shift;
+ int wordsize; + int wordsize;
+ bool bigendian; + bool bigendian;
+ qSysInfo( &wordsize, &bigendian ); + tqSysInfo( &wordsize, &bigendian );
+ bool same_msb_lsb = ( xi->byte_order == MSBFirst ) == ( bigendian ); + bool same_msb_lsb = ( xi->byte_order == MSBFirst ) == ( bigendian );
+ +
+ if( bppc == 8 ) // 8 bit + if( bppc == 8 ) // 8 bit
@ -70,7 +70,7 @@ See 0005-qpixmap_mitshm.patch for details.
+ else + else
+ mode = bppc == 33 ? BPP32_LSB : BPP32_MSB; + mode = bppc == 33 ? BPP32_LSB : BPP32_MSB;
+ } else + } else
+ qFatal("Logic error 3"); + tqFatal("Logic error 3");
#define GET_PIXEL \ #define GET_PIXEL \
int pixel; \ int pixel; \
@ -194,7 +194,7 @@ See 0005-qpixmap_mitshm.patch for details.
+ ) + )
break; break;
default: default:
qFatal("Logic error"); tqFatal("Logic error");
} }
- } else { - } else {
- uint x; - uint x;
@ -314,7 +314,7 @@ See 0005-qpixmap_mitshm.patch for details.
+ ) + )
break; break;
- default: - default:
- qFatal("Logic error 2"); - tqFatal("Logic error 2");
- } - }
- } - }
- } - }
@ -347,7 +347,7 @@ See 0005-qpixmap_mitshm.patch for details.
+ ) + )
+ break; + break;
+ default: + default:
+ qFatal("Logic error 2"); + tqFatal("Logic error 2");
+ } + }
+ } + }
+ xi->data = (char *)newbits; + xi->data = (char *)newbits;

Loading…
Cancel
Save