Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-10:SDK:Extra
clanlib
ClanLib-0.6.5-byteorder.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ClanLib-0.6.5-byteorder.patch of Package clanlib
--- Sources/API/Display/Display/pixeldata.h +++ Sources/API/Display/Display/pixeldata.h @@ -167,24 +167,24 @@ case 15: case 16: { - unsigned short *ptr = - (unsigned short *) m_provider->get_data(); + unsigned char *ptr = + (unsigned char *) m_provider->get_data(); for (int x=0; x<width; x++) { - dest[x] = (unsigned char) (ptr[x+y*width]&255); + dest[x] = ptr[(x+y*width)*2]; } } return; case 32: { - unsigned int *ptr = - (unsigned int *) m_provider->get_data(); + unsigned char *ptr = + (unsigned char *) m_provider->get_data(); for (int x=0; x<width; x++) { - dest[x] = (unsigned char) (ptr[x+y*width]&255); + dest[x] = ptr[(x+y*width)*4]; } } return;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor