Applied some more changes for Android.
- fixed mouse in fullscreen mode (sdl) - fixed / updated build script for current SVN
This commit is contained in:
parent
f906963c45
commit
f303bd4912
@ -19,7 +19,7 @@ if [ \! -f bin-$1/Makefile ] ; then
|
||||
--with-sdl \
|
||||
--enable-cpu-level=6 --enable-smp --enable-x86-64 --enable-avx \
|
||||
--enable-sb16 --enable-es1370 \
|
||||
--enable-ne2000 --enable-ne1000 \
|
||||
--enable-ne2000 --enable-e1000 \
|
||||
--enable-clgd54xx --enable-voodoo \
|
||||
--enable-all-optimizations \
|
||||
--enable-usb --enable-usb-ohci \
|
||||
@ -29,6 +29,7 @@ fi
|
||||
|
||||
# Fix a compilation error
|
||||
mkdir -p bin-$1/iodev/network/slirp
|
||||
mkdir -p bin-$1/cpu/decoder
|
||||
|
||||
|
||||
make -j4 -C bin-$1 && mv -f bin-$1/bochs libapplication-$1.so
|
||||
|
@ -2,7 +2,7 @@
|
||||
// $Id$
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2002-2015 The Bochs Project
|
||||
// Copyright (C) 2002-2016 The Bochs Project
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
@ -432,11 +432,13 @@ void switch_to_fullscreen(void)
|
||||
SDL_FreeSurface(tmp);
|
||||
|
||||
SDL_ShowCursor(0);
|
||||
#ifndef ANDROID
|
||||
if (sdl_grab==0) {
|
||||
SDL_WM_GrabInput(SDL_GRAB_ON);
|
||||
sdl_grab = 1;
|
||||
bx_gui->toggle_mouse_enable();
|
||||
SDL_WM_GrabInput(SDL_GRAB_ON);
|
||||
sdl_grab = 1;
|
||||
bx_gui->toggle_mouse_enable();
|
||||
}
|
||||
#endif
|
||||
bx_gui->flush();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user