src/video/os2fslib/SDL_os2fslib.h
author Edgar Simo <bobbens@gmail.com>
Sun, 06 Jul 2008 17:06:37 +0000
branchgsoc2008_force_feedback
changeset 2498 ab567bd667bf
parent 1895 c121d94672cb
child 2859 99210400e8b9
permissions -rw-r--r--
Fixed various mistakes in the doxygen.
icculus@1190
     1
/*
icculus@1190
     2
    SDL - Simple DirectMedia Layer
icculus@1190
     3
    Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002  Sam Lantinga
icculus@1190
     4
icculus@1190
     5
    This library is free software; you can redistribute it and/or
icculus@1190
     6
    modify it under the terms of the GNU Library General Public
icculus@1190
     7
    License as published by the Free Software Foundation; either
icculus@1190
     8
    version 2 of the License, or (at your option) any later version.
icculus@1190
     9
icculus@1190
    10
    This library is distributed in the hope that it will be useful,
icculus@1190
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
icculus@1190
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
icculus@1190
    13
    Library General Public License for more details.
icculus@1190
    14
icculus@1190
    15
    You should have received a copy of the GNU Library General Public
icculus@1190
    16
    License along with this library; if not, write to the Free
icculus@1190
    17
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
icculus@1190
    18
icculus@1190
    19
    Sam Lantinga
icculus@1190
    20
    slouken@libsdl.org
icculus@1190
    21
*/
slouken@1402
    22
#include "SDL_config.h"
icculus@1190
    23
icculus@1190
    24
#ifndef _SDL_os2fslib_h
icculus@1190
    25
#define _SDL_os2fslib_h
icculus@1190
    26
icculus@1190
    27
icculus@1190
    28
// OS2 specific includes
icculus@1190
    29
#define INCL_TYPES
icculus@1190
    30
#define INCL_DOS
icculus@1190
    31
#define INCL_DOSERRORS
icculus@1190
    32
#define INCL_DOSPROCESS
icculus@1190
    33
#define INCL_WIN
icculus@1190
    34
#define INCL_GPI
icculus@1190
    35
#include <os2.h>
icculus@1190
    36
icculus@1190
    37
#include <FSLib.h>
icculus@1190
    38
icculus@1190
    39
/* Hidden "this" pointer for the video functions */
icculus@1190
    40
#define _THIS	SDL_VideoDevice *_this
icculus@1190
    41
icculus@1190
    42
/* Private display data */
icculus@1190
    43
struct SDL_PrivateVideoData
icculus@1190
    44
{
slouken@1895
    45
    FSLib_VideoMode_p pAvailableFSLibVideoModes;
slouken@1895
    46
    SDL_Rect **pListModesResult;        // Allocated memory to return list of modes for os2fslib_ListModes() API
icculus@1190
    47
slouken@1895
    48
    FSLib_VideoMode SrcBufferDesc;      // Description of current source image buffer
slouken@1895
    49
    char *pchSrcBuffer;         // The source image buffer itself
slouken@1895
    50
    SDL_Surface *pSDLSurface;   // The SDL surface describing the buffer
slouken@1895
    51
    HMTX hmtxUseSrcBuffer;      // Mutex semaphore to manipulate src buffer
slouken@1895
    52
    HWND hwndFrame, hwndClient; // Window handle of frame and client
slouken@1895
    53
    int iPMThreadStatus;        // 0: Not running
slouken@1895
    54
    // 1: Running
slouken@1895
    55
    // Other: Not running, had an error
slouken@1895
    56
    int tidPMThread;            // Thread ID of PM Thread
slouken@1895
    57
    int fInFocus;               // True if we're in focus!
slouken@1895
    58
    int iSkipWMMOUSEMOVE;       // Number of WM_MOUSEMOVE messages to skip!
slouken@1895
    59
    int iMouseVisible;          //
slouken@1442
    60
slouken@1895
    61
    PFNWP pfnOldFrameProc;      // Old window frame procedure
slouken@1895
    62
    int bProportionalResize;    // 0: No proportional resizing
slouken@1895
    63
    // 1: Do proportional resizing
slouken@1895
    64
    ULONG ulResizingFlag;       // First resizing flag value
icculus@1190
    65
};
icculus@1190
    66
slouken@1442
    67
/* OS/2 specific backdoor function to be able to set FrameControlFlags of */
slouken@1442
    68
/* the SDL window before creating it. */
icculus@1190
    69
extern DECLSPEC void SDLCALL SDL_OS2FSLIB_SetFCFToUse(ULONG ulFCF);
icculus@1190
    70
icculus@1190
    71
#endif /* _SDL_os2fslib_h */
slouken@1895
    72
/* vi: set ts=4 sw=4 expandtab: */