Qt-embedded-interest Archive, November 2007
Black stripes on widgets
Message 1 in thread
Hi,
I have ported qt-3.3.8 and konqueror3-2006 to MIPS with color depth
8bpp.
I facing a problem of having black uniformly spaced stripes through-out
the display, including buttons, labels and all the widgets.
It is observed everywhere, appearing uniformly spaced and occur as one
black pixel after every 3 or 4 pixels.
I tried modifying the ::blt() in qgfxraster_qws.cpp as below for every
memmove(), which helped in displaying some widgets proper (code snippet
is as below);
but not uniformly. if anybody have come across similar issue, or anybody
know where the Qlabel.Qcombobox and similar widgets are rendered,
request to share some pointers on this and is appriciated.
________________________________________________________________________
____________________________
int m;
unsigned int *uvram ;
unsigned int *vram;
if (plot) {
unsigned char *srcptr=srcline+(x-rx+srcoffs.x())*bytesPerPixel;
unsigned char *destptr = l + x*bytesPerPixel;
#if 1 // THIS IS THE CODE I HAVE MODIFIED TO
uvram = (unsigned int*)srcptr;
vram = (unsigned int*)destptr;
for (m = 0; m <( (x2-x+1) * bytesPerPixel)/4; m++){
*(vram++) = *(uvram++);
}
#else // THE ORGINAL CODE IS HERE
memmove(destptr, srcptr, (x2-x+1) * bytesPerPixel );
#endif
}
________________________________________________________________________
____________________________
Thanks and Regards,
Sebastian Rajan
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com