src/video/directfb/SDL_DirectFB_video.h
author Sam Lantinga <slouken@libsdl.org>
Mon, 10 Jul 2006 21:04:37 +0000
changeset 1895 c121d94672cb
parent 1402 d910939febfa
child 2226 0e70b4b8cf84
permissions -rw-r--r--
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
slouken@167
     1
/*
slouken@167
     2
    SDL - Simple DirectMedia Layer
slouken@1312
     3
    Copyright (C) 1997-2006 Sam Lantinga
slouken@167
     4
slouken@167
     5
    This library is free software; you can redistribute it and/or
slouken@1312
     6
    modify it under the terms of the GNU Lesser General Public
slouken@167
     7
    License as published by the Free Software Foundation; either
slouken@1312
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@167
     9
slouken@167
    10
    This library is distributed in the hope that it will be useful,
slouken@167
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@167
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1312
    13
    Lesser General Public License for more details.
slouken@167
    14
slouken@1312
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1312
    16
    License along with this library; if not, write to the Free Software
slouken@1312
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@167
    18
slouken@167
    19
    Sam Lantinga
slouken@252
    20
    slouken@libsdl.org
slouken@167
    21
*/
slouken@1402
    22
#include "SDL_config.h"
slouken@167
    23
slouken@167
    24
#ifndef _SDL_DirectFB_video_h
slouken@167
    25
#define _SDL_DirectFB_video_h
slouken@167
    26
slouken@167
    27
#include <directfb.h>
slouken@167
    28
slouken@167
    29
#include "SDL_mouse.h"
slouken@1361
    30
#include "../SDL_sysvideo.h"
slouken@167
    31
slouken@167
    32
#define _THIS SDL_VideoDevice *this
slouken@167
    33
slouken@167
    34
/* Private display data */
slouken@167
    35
slouken@167
    36
struct SDL_PrivateVideoData
slouken@167
    37
{
slouken@1895
    38
    int initialized;
slouken@167
    39
slouken@1895
    40
    IDirectFB *dfb;
slouken@1895
    41
    IDirectFBDisplayLayer *layer;
slouken@1895
    42
    IDirectFBEventBuffer *eventbuffer;
slouken@167
    43
slouken@1895
    44
    int nummodes;
slouken@1895
    45
    SDL_Rect **modelist;
icculus@728
    46
slouken@1895
    47
    /* MGA CRTC2 support */
slouken@1895
    48
    int enable_mga_crtc2;
slouken@1895
    49
    int mga_crtc2_stretch;
slouken@1895
    50
    float mga_crtc2_stretch_overscan;
slouken@1895
    51
    IDirectFBDisplayLayer *c2layer;
slouken@1895
    52
    IDirectFBSurface *c2frame;
slouken@1895
    53
    DFBRectangle c2ssize;       /* Real screen size */
slouken@1895
    54
    DFBRectangle c2dsize;       /* Stretched screen size */
slouken@1895
    55
    DFBRectangle c2framesize;   /* CRTC2 screen size */
slouken@167
    56
};
slouken@167
    57
slouken@167
    58
#define HIDDEN (this->hidden)
slouken@167
    59
slouken@1895
    60
void SetDirectFBerror(const char *function, DFBResult code);
slouken@478
    61
slouken@167
    62
#endif /* _SDL_DirectFB_video_h */
slouken@1895
    63
/* vi: set ts=4 sw=4 expandtab: */