mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-02-22 09:28:59 +00:00
Eliminate a few warnings
This commit is contained in:
parent
21c4e9da5b
commit
b97f09221e
@ -396,8 +396,8 @@ static NSPoint mouse; // Previous/current mouse location
|
|||||||
|
|
||||||
mouse = location;
|
mouse = location;
|
||||||
|
|
||||||
int mouseY = y - y * mouse.y / [self height];
|
int mouseY = y - (int) (y * mouse.y / [self height]);
|
||||||
int mouseX = x * mouse.x / [self width];
|
int mouseX = (int) (x * mouse.x / [self width]);
|
||||||
// If the view was not resizable, then this would be simpler:
|
// If the view was not resizable, then this would be simpler:
|
||||||
// int mouseY = y - (int) mouse.y;
|
// int mouseY = y - (int) mouse.y;
|
||||||
// int mouseX = (int) mouse.x;
|
// int mouseX = (int) mouse.x;
|
||||||
@ -483,10 +483,10 @@ static NSPoint mouse; // Previous/current mouse location
|
|||||||
#ifdef NSBITMAP
|
#ifdef NSBITMAP
|
||||||
= [bitmap bitmapData];
|
= [bitmap bitmapData];
|
||||||
#else
|
#else
|
||||||
= bitmap;
|
= (unsigned char *) bitmap;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
memset(data, val, numBytes);
|
memset(data, val, (long unsigned)numBytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) blacken // Set bitmap black
|
- (void) blacken // Set bitmap black
|
||||||
|
Loading…
x
Reference in New Issue
Block a user