mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 08:41:00 +00:00
In [initWithBitmapDataPlanes:...bitsPerPixel:],
[getBitmapDataPlanes:] and [copyWithZone:] changed type of i to unsigned int. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16887 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
307345df4d
commit
d02bdec0cf
1 changed files with 4 additions and 4 deletions
|
@ -218,7 +218,7 @@
|
||||||
_imagePlanes = NSZoneMalloc([self zone], sizeof(unsigned char*) * MAX_PLANES);
|
_imagePlanes = NSZoneMalloc([self zone], sizeof(unsigned char*) * MAX_PLANES);
|
||||||
if (planes)
|
if (planes)
|
||||||
{
|
{
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
for (i = 0; i < MAX_PLANES; i++)
|
for (i = 0; i < MAX_PLANES; i++)
|
||||||
_imagePlanes[i] = NULL;
|
_imagePlanes[i] = NULL;
|
||||||
|
@ -229,7 +229,7 @@
|
||||||
{
|
{
|
||||||
unsigned char* bits;
|
unsigned char* bits;
|
||||||
long length;
|
long length;
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
// No image data was given, allocate it.
|
// No image data was given, allocate it.
|
||||||
length = (long)((_isPlanar) ? _numColors : 1) * _bytesPerRow *
|
length = (long)((_isPlanar) ? _numColors : 1) * _bytesPerRow *
|
||||||
|
@ -354,7 +354,7 @@
|
||||||
|
|
||||||
- (void) getBitmapDataPlanes: (unsigned char **)data
|
- (void) getBitmapDataPlanes: (unsigned char **)data
|
||||||
{
|
{
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
if (data)
|
if (data)
|
||||||
{
|
{
|
||||||
|
@ -594,7 +594,7 @@
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
unsigned char* bits;
|
unsigned char* bits;
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
bits = [copy->_imageData mutableBytes];
|
bits = [copy->_imageData mutableBytes];
|
||||||
copy->_imagePlanes[0] = bits;
|
copy->_imagePlanes[0] = bits;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue