Removed deprecated register keyword usage
This commit is contained in:
parent
23513b5ab6
commit
8457990bb1
@ -136,22 +136,22 @@ static NSOpenGLContext* s_sharedOpenGLContext = NULL;
|
|||||||
// Taken/Adapted from one of the Apple OpenGL developer examples
|
// Taken/Adapted from one of the Apple OpenGL developer examples
|
||||||
static void Internal_SetAlpha(NSBitmapImageRep *imageRep, unsigned char alpha_value)
|
static void Internal_SetAlpha(NSBitmapImageRep *imageRep, unsigned char alpha_value)
|
||||||
{
|
{
|
||||||
register unsigned char * sp = [imageRep bitmapData];
|
unsigned char * sp = [imageRep bitmapData];
|
||||||
register int bytesPerRow = [imageRep bytesPerRow];
|
int bytesPerRow = [imageRep bytesPerRow];
|
||||||
register int height = [imageRep pixelsHigh];
|
int height = [imageRep pixelsHigh];
|
||||||
register int width = [imageRep pixelsWide];
|
int width = [imageRep pixelsWide];
|
||||||
|
|
||||||
for(int i=0; i<height; i++)
|
for(int i=0; i<height; i++)
|
||||||
{
|
{
|
||||||
register unsigned int * the_pixel = (unsigned int *) sp;
|
unsigned int * the_pixel = (unsigned int *) sp;
|
||||||
register int w = width;
|
int w = width;
|
||||||
while (w-- > 0)
|
while (w-- > 0)
|
||||||
{
|
{
|
||||||
unsigned char* sp_char = (unsigned char *) the_pixel;
|
unsigned char* sp_char = (unsigned char *) the_pixel;
|
||||||
// register unsigned char * the_red = sp_char;
|
// unsigned char * the_red = sp_char;
|
||||||
// register unsigned char * the_green = (sp_char+1);
|
// unsigned char * the_green = (sp_char+1);
|
||||||
// register unsigned char * the_blue = (sp_char+2);
|
// unsigned char * the_blue = (sp_char+2);
|
||||||
register unsigned char * the_alpha = (sp_char+3);
|
unsigned char * the_alpha = (sp_char+3);
|
||||||
|
|
||||||
*the_alpha = alpha_value;
|
*the_alpha = alpha_value;
|
||||||
*the_pixel++;
|
*the_pixel++;
|
||||||
|
Loading…
Reference in New Issue
Block a user