GP2XWiz: Fix bug with downscaled cursors.

svn-id: r43029
This commit is contained in:
John Willis 2009-08-03 18:38:46 +00:00
parent c2dc86df08
commit 6dbdad02e5
3 changed files with 8 additions and 10 deletions

View File

@ -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();
}

View File

@ -48,7 +48,7 @@ enum {
VOLUME_UP = 2,
VOLUME_CHANGE_RATE = 8,
VOLUME_MIN = 0,
VOLUME_INITIAL = 70,
VOLUME_INITIAL = 60,
VOLUME_MAX = 100
};

View File

@ -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);