#define __DXWRAP_H__
#include "rtgmodes.h"
-#include <ddraw.h>
#include <d3d9.h>
#include <D3dkmthk.h>
#define MAX_DISPLAYS 10
-extern int ddforceram;
-extern int useoverlay;
-
-struct ddstuff
-{
- int ddinit;
- int ddzeroguid;
- GUID ddguid;
- LPDIRECTDRAW7 maindd;
- LPDIRECTDRAWCLIPPER dclip;
- LPDIRECTDRAWSURFACE7 primary, secondary, flipping[2];
- DDOVERLAYFX overlayfx;
- DWORD overlayflags;
- int fsmodeset, backbuffers;
- int width, height, depth, freq;
- int vblank_skip, vblank_skip_cnt;
- int swidth, sheight;
- DDSURFACEDESC2 native;
- DDSURFACEDESC2 locksurface;
- int lockcnt;
- DWORD pitch;
- HWND hwnd;
- uae_u32 colorkey;
- int islost, isoverlay;
-
- LPDIRECTDRAWSURFACE7 statussurface;
-};
-struct ddcaps
-{
- int maxwidth, maxheight;
- int cancolorkey;
- int cannonlocalvidmem;
-};
-extern struct ddstuff dxdata;
-extern struct ddcaps dxcaps;
-
struct ScreenResolution
{
uae_u32 width; /* in pixels */
#define IDS_CPU 12
#define IDS_CHIPSET 13
#define IDS_INPUT 14
-#define IDS_OPENGL 15
#define IDS_FILTER 15
#define IDS_MISC2 16
#define IDS_PATHS 17
#define IDI_AVIOUTPUT 158
#define IDS_ERRORTITLE 159
#define IDS_SELECTFILESYSROOT 160
-#define IDD_OPENGL 160
#define IDD_FILTER 160
#define IDS_DEFAULTMIDIOUT 161
#define IDS_DEFAULTMIDIIN 162
#define IDC_INPUTMAPLIST 1797
#define IDC_RTG_HWSPRITE 1797
#define IDC_PORT1_REMAP 1798
-#define IDC_RTG_SCALE_ALLOW2 1798
#define IDC_RTG_CENTER 1798
#define IDC_PORT0_REMAP 1799
#define IDC_RTG_Z2Z4 1799
static int dirnumber = 1;
/*
-Captures the Amiga display (GDI, D3D or OpenGL) surface and saves it to file as a 24bit bitmap.
+Captures the Amiga display (GDI, D3D) surface and saves it to file as a 24bit bitmap.
*/
int screenshotf(int monid, const TCHAR *spath, int mode, int doprepare, int imagemode, struct vidbuffer *vb)
{