mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-02-03 22:37:56 +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;
|
||||
|
||||
int mouseY = y - y * mouse.y / [self height];
|
||||
int mouseX = x * mouse.x / [self width];
|
||||
int mouseY = y - (int) (y * mouse.y / [self height]);
|
||||
int mouseX = (int) (x * mouse.x / [self width]);
|
||||
// If the view was not resizable, then this would be simpler:
|
||||
// int mouseY = y - (int) mouse.y;
|
||||
// int mouseX = (int) mouse.x;
|
||||
@ -483,10 +483,10 @@ static NSPoint mouse; // Previous/current mouse location
|
||||
#ifdef NSBITMAP
|
||||
= [bitmap bitmapData];
|
||||
#else
|
||||
= bitmap;
|
||||
= (unsigned char *) bitmap;
|
||||
#endif
|
||||
|
||||
memset(data, val, numBytes);
|
||||
memset(data, val, (long unsigned)numBytes);
|
||||
}
|
||||
|
||||
- (void) blacken // Set bitmap black
|
||||
|
Loading…
x
Reference in New Issue
Block a user