--- uae/src/od-win32/win32.c 2018/04/24 16:43:00 1.1.1.2 +++ uae/src/od-win32/win32.c 2018/04/24 16:45:43 1.1.1.3 @@ -206,119 +206,154 @@ static void figure_processor_speed (void static char *getddrname (HRESULT ddrval) { switch (ddrval) { - case DDERR_ALREADYINITIALIZED: + case DDERR_ALREADYINITIALIZED: return "This object is already initialized."; - case DDERR_BLTFASTCANTCLIP: - return "Cannot use BLTFAST with Clipper attached to surface."; - case DDERR_CANNOTATTACHSURFACE: + case DDERR_CANNOTATTACHSURFACE: return "Cannot attach surface."; - case DDERR_CANNOTDETACHSURFACE: + case DDERR_CANNOTDETACHSURFACE: return "Cannot detach surface."; - case DDERR_CANTCREATEDC: - return "Cannot create DC Device Context."; - case DDERR_CANTDUPLICATE: - return "Cannot duplicate."; - case DDERR_CANTLOCKSURFACE: - return "Access to surface refused (no DCI provider)."; - case DDERR_CANTPAGELOCK: - return "PageLock failure."; - case DDERR_CANTPAGEUNLOCK: - return "PageUnlock failure."; - case DDERR_CLIPPERISUSINGHWND: - return "Can't set a clip-list for a Clipper which is attached to an HWND."; - case DDERR_COLORKEYNOTSET: - return "No source colour-key provided."; - case DDERR_CURRENTLYNOTAVAIL: + case DDERR_CURRENTLYNOTAVAIL: return "Support unavailable."; - case DDERR_DCALREADYCREATED: - return "Surface already has a Device Context."; - case DDERR_DIRECTDRAWALREADYCREATED: - return "DirectDraw already bound to this process."; - case DDERR_EXCEPTION: + case DDERR_EXCEPTION: return "Unexpected exception."; - case DDERR_EXCLUSIVEMODEALREADYSET: - return "Already in exclusive mode."; - case DDERR_GENERIC: + case DDERR_GENERIC: return "Undefined"; /* THIS MAKES SENSE! FUCKING M$ */ - - case DDERR_HEIGHTALIGN: + case DDERR_HEIGHTALIGN: return "Height needs to be aligned."; - case DDERR_HWNDALREADYSET: - return "HWND already set for cooperative level."; - case DDERR_HWNDSUBCLASSED: - return "HWND has been subclassed."; - case DDERR_IMPLICITLYCREATED: - return "Can't restore an implicitly created surface."; - case DDERR_INCOMPATIBLEPRIMARY: + case DDERR_INCOMPATIBLEPRIMARY: return "New params doesn't match existing primary surface."; - case DDERR_INVALIDCAPS: + case DDERR_INVALIDCAPS: return "Device doesn't have requested capabilities."; - case DDERR_INVALIDCLIPLIST: + case DDERR_INVALIDCLIPLIST: return "Provided clip-list not supported."; - case DDERR_INVALIDDIRECTDRAWGUID: - return "Invalid GUID."; - case DDERR_INVALIDMODE: + case DDERR_INVALIDMODE: return "Mode not supported."; - case DDERR_INVALIDOBJECT: + case DDERR_INVALIDOBJECT: return "Invalid object."; - case DDERR_INVALIDPARAMS: + case DDERR_INVALIDPARAMS: return "Invalid params."; - case DDERR_INVALIDPIXELFORMAT: + case DDERR_INVALIDPIXELFORMAT: return "Device doesn't support requested pixel format."; - case DDERR_INVALIDPOSITION: - return "Overlay position illegal."; - case DDERR_INVALIDRECT: + case DDERR_INVALIDRECT: return "Invalid RECT."; - case DDERR_INVALIDSURFACETYPE: - return "Wrong type of surface."; - case DDERR_LOCKEDSURFACES: + case DDERR_LOCKEDSURFACES: return "Surface locked."; - case DDERR_NO3D: + case DDERR_NO3D: return "No 3d capabilities."; - case DDERR_NOALPHAHW: + case DDERR_NOALPHAHW: return "No alpha h/w."; - case DDERR_NOBLTHW: - return "No blit h/w."; - case DDERR_NOCLIPLIST: + case DDERR_NOCLIPLIST: return "No clip-list."; - case DDERR_NOCLIPPERATTACHED: - return "No Clipper attached."; - case DDERR_NOCOLORCONVHW: + case DDERR_NOCOLORCONVHW: return "No colour-conversion h/w."; - case DDERR_NOCOLORKEY: + case DDERR_NOCOOPERATIVELEVELSET: + return "No cooperative-level set."; + case DDERR_NOCOLORKEY: return "No colour-key."; + case DDERR_NOCOLORKEYHW: + return "No colour-key hardware."; + case DDERR_NODIRECTDRAWSUPPORT: + return "No DirectDraw support with this display driver!"; + case DDERR_NOEXCLUSIVEMODE: + return "Exlusive-mode needed but not set yet."; + case DDERR_NOFLIPHW: + return "No flipping hardware."; + case DDERR_NOGDI: + return "No GDI present."; + case DDERR_NOMIRRORHW: + return "No mirror hardware."; + case DDERR_NOTFOUND: + return "Requested item not found."; + case DDERR_NOOVERLAYHW: + return "No overlay hardware."; + case DDERR_NORASTEROPHW: + return "No raster-op hardware."; + case DDERR_NOROTATIONHW: + return "No rotation hardware."; + case DDERR_NOSTRETCHHW: + return "No stretch hardware."; + case DDERR_NOT4BITCOLOR: + return "Not a 4-bit colour palette."; + case DDERR_NOT4BITCOLORINDEX: + return "Not a 4-bit colour-index."; + case DDERR_NOT8BITCOLOR: + return "Not an 8-bit colour palette."; + case DDERR_NOTEXTUREHW: + return "No texture hardware."; + case DDERR_BLTFASTCANTCLIP: + return "Cannot use BLTFAST with Clipper attached to surface."; + case DDERR_CANTCREATEDC: + return "Cannot create DC Device Context."; + case DDERR_CANTDUPLICATE: + return "Cannot duplicate."; + case DDERR_CANTLOCKSURFACE: + return "Access to surface refused (no DCI Provider)."; + case DDERR_CANTPAGELOCK: + return "PageLock failure."; + case DDERR_CANTPAGEUNLOCK: + return "PageUnlock failure."; + case DDERR_CLIPPERISUSINGHWND: + return "Can't set a clip-list for a Clipper which is attached to an HWND."; + case DDERR_COLORKEYNOTSET: + return "No source colour-key provided."; + case DDERR_DCALREADYCREATED: + return "Surface already has a Device Context."; + case DDERR_DIRECTDRAWALREADYCREATED: + return "DirectDraw already bound to this process."; + case DDERR_EXCLUSIVEMODEALREADYSET: + return "Already in exclusive mode."; + case DDERR_HWNDALREADYSET: + return "HWND already set for cooperative level."; + case DDERR_HWNDSUBCLASSED: + return "HWND has been subclassed."; + case DDERR_IMPLICITLYCREATED: + return "Can't restore an implicitly created surface."; + case DDERR_INVALIDDIRECTDRAWGUID: + return "Invalid GUID."; + case DDERR_INVALIDPOSITION: + return "Overlay position illegal."; + case DDERR_INVALIDSURFACETYPE: + return "Wrong type of surface."; + case DDERR_NOBLTHW: + return "No blit h/w."; + case DDERR_NOCLIPPERATTACHED: + return "No Clipper attached."; - case DDERR_NOTLOCKED: + case DDERR_NOTLOCKED: return "Not locked."; - case DDERR_NOTPAGELOCKED: + case DDERR_NOTPAGELOCKED: return "Not page-locked."; - case DDERR_NOTPALETTIZED: + case DDERR_NOTPALETTIZED: return "Not palette-based."; - case DDERR_OUTOFCAPS: + case DDERR_OUTOFCAPS: return "out of caps"; - case DDERR_OUTOFMEMORY: + case DDERR_OUTOFMEMORY: return "Out of memory."; - case DDERR_OUTOFVIDEOMEMORY: + case DDERR_OUTOFVIDEOMEMORY: return "out of video memory."; - case DDERR_PALETTEBUSY: + case DDERR_PALETTEBUSY: return "Palette busy."; - case DDERR_PRIMARYSURFACEALREADYEXISTS: + case DDERR_PRIMARYSURFACEALREADYEXISTS: return "Already a primary surface."; - case DDERR_SURFACEBUSY: + case DDERR_SURFACEBUSY: return "Surface busy."; /*case DDERR_SURFACEOBSCURED: return "Surface is obscured."; */ - case DDERR_SURFACELOST: + case DDERR_SURFACELOST: return "Surface lost."; - case DDERR_UNSUPPORTED: + case DDERR_UNSUPPORTED: return "Unsupported."; - case DDERR_UNSUPPORTEDFORMAT: + case DDERR_UNSUPPORTEDFORMAT: return "Unsupported format."; - case DDERR_WASSTILLDRAWING: + case DDERR_WASSTILLDRAWING: return "Was still drawing."; + + case DDERR_WRONGMODE: + return "Wrong Mode."; + } return ""; }