mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-18 07:39:08 +00:00
GP2XWiz: Fix bug with downscaled cursors.
svn-id: r43029
This commit is contained in:
parent
c2dc86df08
commit
6dbdad02e5
@ -115,8 +115,6 @@ void OSystem_GP2XWIZ::setGraphicsModeIntern() {
|
||||
void OSystem_GP2XWIZ::initSize(uint w, uint h) {
|
||||
assert(_transactionMode == kTransactionActive);
|
||||
|
||||
printf("Init Size: w=%d, h=%d\n", w, h);
|
||||
|
||||
// Avoid redundant res changes
|
||||
if ((int)w == _videoMode.screenWidth && (int)h == _videoMode.screenHeight)
|
||||
return;
|
||||
@ -371,11 +369,11 @@ void OSystem_GP2XWIZ::internUpdateScreen() {
|
||||
assert(scalerProc != NULL);
|
||||
|
||||
if(_videoMode.mode == GFX_HALF && scalerProc == HalfScale){
|
||||
if(dst_x % 2 == 1){
|
||||
if(dst_x%2==1){
|
||||
dst_x--;
|
||||
dst_w++;
|
||||
}
|
||||
if(dst_y % 2 == 1){
|
||||
if(dst_y%2==1){
|
||||
dst_y--;
|
||||
dst_h++;
|
||||
}
|
||||
@ -441,8 +439,8 @@ void OSystem_GP2XWIZ::showOverlay() {
|
||||
|
||||
void OSystem_GP2XWIZ::hideOverlay() {
|
||||
if(_videoMode.mode == GFX_HALF){
|
||||
_mouseCurState.x = _mouseCurState.x / 2;
|
||||
_mouseCurState.y = _mouseCurState.y / 2;
|
||||
_mouseCurState.x = _mouseCurState.x * 2;
|
||||
_mouseCurState.y = _mouseCurState.y * 2;
|
||||
}
|
||||
OSystem_SDL::hideOverlay();
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ enum {
|
||||
VOLUME_UP = 2,
|
||||
VOLUME_CHANGE_RATE = 8,
|
||||
VOLUME_MIN = 0,
|
||||
VOLUME_INITIAL = 70,
|
||||
VOLUME_INITIAL = 60,
|
||||
VOLUME_MAX = 100
|
||||
};
|
||||
|
||||
|
@ -148,9 +148,9 @@ void OSystem_GP2XWIZ::initBackend() {
|
||||
WIZ_HW::mixerMoveVolume(0);
|
||||
|
||||
/* Up default volume values as we use a seperate system level volume anyway. */
|
||||
ConfMan.registerDefault("music_volume", 220);
|
||||
ConfMan.registerDefault("sfx_volume", 220);
|
||||
ConfMan.registerDefault("speech_volume", 220);
|
||||
ConfMan.registerDefault("music_volume", 192);
|
||||
ConfMan.registerDefault("sfx_volume", 192);
|
||||
ConfMan.registerDefault("speech_volume", 192);
|
||||
|
||||
/* Trigger autosave every 4 minutes - On low batts 5 mins is about your warning time. */
|
||||
ConfMan.registerDefault("autosave_period", 4 * 60);
|
||||
|
Loading…
Reference in New Issue
Block a user