Direct3DCreate function pointer typedef needs WINAPI macro

disable page flipping dependent checkboxes in constructor to ensure 
correct start state


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@153 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
This commit is contained in:
sinamas 2008-05-27 15:55:48 +00:00
parent 788e1d0ef1
commit 09f966a927
2 changed files with 4 additions and 1 deletions

View File

@ -154,6 +154,9 @@ Direct3DBlitter::Direct3DBlitter(PixelBufferSetter setPixelBuffer, QWidget *pare
confWidget->setLayout(mainLayout);
}
vblankflipBox->setEnabled(false);
triplebufBox->setEnabled(false);
connect(flippingBox, SIGNAL(toggled(bool)), vblankflipBox, SLOT(setEnabled(bool)));
connect(flippingBox, SIGNAL(toggled(bool)), triplebufBox, SLOT(setEnabled(bool)));

View File

@ -27,7 +27,7 @@ class QCheckBox;
class QComboBox;
class Direct3DBlitter : public BlitterWidget {
typedef IDirect3D9* (*Direct3DCreate9Ptr)(UINT);
typedef IDirect3D9* (WINAPI *Direct3DCreate9Ptr)(UINT);
const std::auto_ptr<QWidget> confWidget;
QComboBox *const adapterSelector;