src/video/directfb/SDL_DirectFB_video.h
author Sam Lantinga <slouken@libsdl.org>
Wed, 01 Feb 2006 06:32:25 +0000
changeset 1312 c9b51268668f
parent 769 b8d311d90021
child 1361 19418e4422cb
permissions -rw-r--r--
Updated copyright information and removed rcs id lines (problematic in branch merges)
I batch edited these files, so please let me know if I've accidentally removed anybody's
credit here.
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@167
    22
slouken@167
    23
#ifndef _SDL_DirectFB_video_h
slouken@167
    24
#define _SDL_DirectFB_video_h
slouken@167
    25
slouken@167
    26
#include <directfb.h>
slouken@167
    27
slouken@167
    28
#include "SDL_mouse.h"
slouken@167
    29
#include "SDL_sysvideo.h"
slouken@167
    30
slouken@167
    31
#define _THIS SDL_VideoDevice *this
slouken@167
    32
slouken@167
    33
/* Private display data */
slouken@167
    34
slouken@167
    35
struct SDL_PrivateVideoData
slouken@167
    36
{
slouken@167
    37
  int                    initialized;
slouken@167
    38
slouken@167
    39
  IDirectFB             *dfb;
slouken@167
    40
  IDirectFBDisplayLayer *layer;
slouken@286
    41
  IDirectFBEventBuffer  *eventbuffer;
slouken@167
    42
slouken@464
    43
  int nummodes;
slouken@464
    44
  SDL_Rect **modelist;
icculus@728
    45
icculus@728
    46
  /* MGA CRTC2 support */
icculus@728
    47
  int enable_mga_crtc2;
icculus@728
    48
  int mga_crtc2_stretch;
icculus@728
    49
  float mga_crtc2_stretch_overscan;
icculus@728
    50
  IDirectFBDisplayLayer *c2layer;
icculus@728
    51
  IDirectFBSurface *c2frame;
icculus@728
    52
  DFBRectangle c2ssize;	/* Real screen size */
icculus@728
    53
  DFBRectangle c2dsize;	/* Stretched screen size */
icculus@728
    54
  DFBRectangle c2framesize;    /* CRTC2 screen size */
slouken@167
    55
};
slouken@167
    56
slouken@167
    57
#define HIDDEN (this->hidden)
slouken@167
    58
slouken@478
    59
void SetDirectFBerror (const char *function, DFBResult code);
slouken@478
    60
slouken@167
    61
#endif /* _SDL_DirectFB_video_h */