aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2019-03-13 17:53:46 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2019-03-13 17:53:46 +0800
commitcf15fde2aa2bcbb244fdfdc46debf457451079f7 (patch)
tree3d63d296f0fbd45fcd128b1c8006cb8de5bc4353 /core
parentfb5c0155fdff917a1f1816c7afbf00a076c54156 (diff)
downloadQMidiPlayer-cf15fde2aa2bcbb244fdfdc46debf457451079f7.tar.xz
Set preset bank correctly in XG mode.
Removed High DPI handling code. Good luck to Windows users out there. Skulpture style: dials are no longer blurred if scaled.
Diffstat (limited to 'core')
-rw-r--r--core/qmpmidiplay.cpp21
1 files changed, 5 insertions, 16 deletions
diff --git a/core/qmpmidiplay.cpp b/core/qmpmidiplay.cpp
index 64b3c72..58c344e 100644
--- a/core/qmpmidiplay.cpp
+++ b/core/qmpmidiplay.cpp
@@ -405,22 +405,11 @@ void CMidiPlayer::getChannelPreset(int ch,int *b,int *p,char *name)
void CMidiPlayer::setChannelPreset(int ch,int b,int p)
{
chstatus[ch][128]=p;
- if(mappedoutput[ch])
- {
- //external device mode?
- chstatus[ch][0]=b>>7;chstatus[ch][32]=b&0x7F;
- qmpMidiOutDevice* d=mididev[mappedoutput[ch]].dev;
- d->basicMessage(0xB0|ch,0x00,b>>7);
- d->basicMessage(0xB0|ch,0x20,b&0x7F);
- d->basicMessage(0xC0|ch,p,0);
- }
- else
- {
- chstatus[ch][0]=b;//Assuming GS. !!FIXME: This is not correct...
- qmpMidiOutDevice* d=mididev[mappedoutput[ch]].dev;
- d->basicMessage(0xB0|ch,0x00,b);
- d->basicMessage(0xC0|ch,p,0);
- }
+ chstatus[ch][0]=b>>7;chstatus[ch][32]=b&0x7F;
+ qmpMidiOutDevice* d=mididev[mappedoutput[ch]].dev;
+ d->basicMessage(0xB0|ch,0x00,b>>7);
+ d->basicMessage(0xB0|ch,0x20,b&0x7F);
+ d->basicMessage(0xC0|ch,p,0);
}
void CMidiPlayer::dumpFile()
{