mirror of
https://github.com/cmosher01/Epple-II.git
synced 2025-02-05 17:30:41 +00:00
fix some compiler warnings
This commit is contained in:
parent
500be66a0b
commit
6a231c3812
@ -67,6 +67,8 @@ static int HSVtoRGB(const int h, const float s, const float v)
|
||||
g = v * (1 - s);
|
||||
b = v * (1 - s * f);
|
||||
break;
|
||||
default:
|
||||
r = g = b = 0;
|
||||
}
|
||||
|
||||
return (tobyt(r) << 16) | (tobyt(g) << 8) | (tobyt(b));
|
||||
|
@ -26,6 +26,8 @@
|
||||
class Cassette
|
||||
{
|
||||
private:
|
||||
ScreenImage& gui;
|
||||
|
||||
unsigned int t;
|
||||
unsigned int prevT;
|
||||
|
||||
@ -41,8 +43,6 @@ private:
|
||||
unsigned int pos;
|
||||
bool modified;
|
||||
|
||||
ScreenImage& gui;
|
||||
|
||||
void checkForWriteProtection();
|
||||
|
||||
unsigned char getHalfCycleTime(); // in 10-microsecond units
|
||||
|
@ -184,7 +184,6 @@ int Emulator::run() {
|
||||
void Emulator::dispatchKeyUp(const SDL_KeyboardEvent& keyEvent) {
|
||||
SDL_Keycode sym = keyEvent.keysym.sym;
|
||||
SDL_Keymod mod = (SDL_Keymod) keyEvent.keysym.mod;
|
||||
unsigned char key = (unsigned char) (sym & 0x7F);
|
||||
|
||||
if ((sym < 0x7F || sym == SDLK_LEFT || sym == SDLK_RIGHT) &&
|
||||
!(sym == SDLK_TAB || sym == SDLK_BACKQUOTE || sym == '[' || sym == '\\' || sym == SDLK_DELETE) &&
|
||||
@ -289,7 +288,6 @@ void Emulator::dispatchKeypress(const SDL_KeyboardEvent& keyEvent) {
|
||||
|
||||
SDL_Keycode sym = keyEvent.keysym.sym;
|
||||
SDL_Keymod mod = (SDL_Keymod) keyEvent.keysym.mod;
|
||||
SDL_Scancode scan = keyEvent.keysym.scancode;
|
||||
|
||||
//printf("keydown: mod: %04X sym: %08X scan:%04X name:%s\n", mod, sym, scan, SDL_GetKeyName(sym));
|
||||
|
||||
@ -394,7 +392,6 @@ void Emulator::dispatchKeypress(const SDL_KeyboardEvent& keyEvent) {
|
||||
|
||||
void Emulator::cmdKey(const SDL_KeyboardEvent& keyEvent) {
|
||||
SDL_Keycode sym = keyEvent.keysym.sym;
|
||||
SDL_Keymod mod = (SDL_Keymod) keyEvent.keysym.mod;
|
||||
unsigned char key = (unsigned char) (sym & 0x7F);
|
||||
|
||||
if (sym == SDLK_RETURN) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user