Linux build works again.

develop
Petr Mrázek 2012-06-14 02:25:15 +02:00
parent 456c637d82
commit 2781723f7b
3 changed files with 2 additions and 6 deletions

@ -1220,9 +1220,8 @@ bool Core::ncurses_wgetch(int in, int & out)
return true;
}
int UnicodeAwareSym(const SDL::Event& event)
int UnicodeAwareSym(const SDL::KeyboardEvent& ke)
{
auto ke = (const SDL::KeyboardEvent &) event;
// Assume keyboard layouts don't change the order of numbers:
if( '0' <= ke.ksym.sym && ke.ksym.sym <= '9') return ke.ksym.sym;
if(SDL::K_F1 <= ke.ksym.sym && ke.ksym.sym <= SDL::K_F12) return ke.ksym.sym;

@ -79,7 +79,7 @@ DFhackCExport int SDL_PollEvent(SDL::Event* event)
{
DFHack::Core & c = DFHack::Core::getInstance();
// if we consume the event, ask SDL for more.
if(!c.SDL_Event(event))
if(!c.DFH_SDL_Event(event))
goto pollevent_again;
}
return orig_return;

@ -971,9 +971,6 @@ static void compute_job_outputs(color_ostream &out, ProtectedJob *pj)
case MillPlants:
PLANT_PROCESS_MAT(MILL, mill);
break;
case BrewDrink:
PLANT_PROCESS_MAT(DRINK, drink);
break;
case ProcessPlants:
PLANT_PROCESS_MAT(THREAD, thread);
break;