sdl

FORK: Simple Directmedia Layer
git clone https://git.neptards.moe/neptards/sdl.git
Log | Files | Refs

SDL_os2video.h (2390B)


      1 /*
      2   Simple DirectMedia Layer
      3   Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
      4 
      5   This software is provided 'as-is', without any express or implied
      6   warranty.  In no event will the authors be held liable for any damages
      7   arising from the use of this software.
      8 
      9   Permission is granted to anyone to use this software for any purpose,
     10   including commercial applications, and to alter it and redistribute it
     11   freely, subject to the following restrictions:
     12 
     13   1. The origin of this software must not be misrepresented; you must not
     14      claim that you wrote the original software. If you use this software
     15      in a product, an acknowledgment in the product documentation would be
     16      appreciated but is not required.
     17   2. Altered source versions must be plainly marked as such, and must not be
     18      misrepresented as being the original software.
     19   3. This notice may not be removed or altered from any source distribution.
     20 */
     21 #include "../../SDL_internal.h"
     22 
     23 #ifndef SDL_os2video_h_
     24 #define SDL_os2video_h_
     25 
     26 #include "../SDL_sysvideo.h"
     27 #include "../../core/os2/SDL_os2.h"
     28 
     29 #define INCL_DOS
     30 #define INCL_DOSERRORS
     31 #define INCL_DOSPROCESS
     32 #define INCL_WIN
     33 #define INCL_GPI
     34 #define INCL_OS2MM
     35 #define INCL_DOSMEMMGR
     36 #include <os2.h>
     37 
     38 #include "SDL_os2mouse.h"
     39 #include "SDL_os2output.h"
     40 
     41 typedef struct SDL_VideoData {
     42     HAB             hab;
     43     HMQ             hmq;
     44     OS2VIDEOOUTPUT *pOutput; /* Video output routines */
     45 } SDL_VideoData;
     46 
     47 typedef struct _WINDATA {
     48     SDL_Window     *window;
     49     OS2VIDEOOUTPUT *pOutput; /* Video output routines */
     50     HWND            hwndFrame;
     51     HWND            hwnd;
     52     PFNWP           fnUserWndProc;
     53     PFNWP           fnWndFrameProc;
     54 
     55     PVODATA         pVOData; /* Video output data */
     56 
     57     HRGN            hrgnShape;
     58     HPOINTER        hptrIcon;
     59     RECTL           rectlBeforeFS;
     60 
     61     LONG            lSkipWMSize;
     62     LONG            lSkipWMMove;
     63     LONG            lSkipWMMouseMove;
     64     LONG            lSkipWMVRNEnabled;
     65     LONG            lSkipWMAdjustFramePos;
     66 } WINDATA;
     67 
     68 typedef struct _DISPLAYDATA {
     69     ULONG           ulDPIHor;
     70     ULONG           ulDPIVer;
     71     ULONG           ulDPIDiag;
     72 } DISPLAYDATA;
     73 
     74 typedef struct _MODEDATA {
     75     ULONG           ulDepth;
     76     ULONG           fccColorEncoding;
     77     ULONG           ulScanLineBytes;
     78 } MODEDATA;
     79 
     80 #endif /* SDL_os2video_h_ */
     81 
     82 /* vi: set ts=4 sw=4 expandtab: */