src/video/windib/SDL_dibvideo.h
author Ryan C. Gordon
Tue, 26 Jun 2007 20:02:40 +0000
branchSDL-1.2
changeset 3981 b0d021cf41b6
parent 1465 8dfa9a6d69a5
child 3992 c75679dce60c
permissions -rw-r--r--
windib target can now control screensaver with SDL_VIDEO_ALLOW_SCREENSAVER.

Fixes Bugzilla #415.
slouken@0
     1
/*
slouken@0
     2
    SDL - Simple DirectMedia Layer
slouken@1312
     3
    Copyright (C) 1997-2006 Sam Lantinga
slouken@0
     4
slouken@0
     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@0
     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@0
     9
slouken@0
    10
    This library is distributed in the hope that it will be useful,
slouken@0
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@0
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1312
    13
    Lesser General Public License for more details.
slouken@0
    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@0
    18
slouken@0
    19
    Sam Lantinga
slouken@252
    20
    slouken@libsdl.org
slouken@0
    21
*/
slouken@1402
    22
#include "SDL_config.h"
slouken@0
    23
slouken@0
    24
#ifndef _SDL_dibvideo_h
slouken@0
    25
#define _SDL_dibvideo_h
slouken@0
    26
slouken@1433
    27
#define WIN32_LEAN_AND_MEAN
slouken@1433
    28
#include <windows.h>
slouken@0
    29
icculus@1251
    30
/* for PDA */
icculus@1251
    31
typedef enum
icculus@1251
    32
{
icculus@1251
    33
	SDL_ORIENTATION_UP,
icculus@1251
    34
	SDL_ORIENTATION_DOWN,
icculus@1251
    35
	SDL_ORIENTATION_LEFT,
icculus@1251
    36
	SDL_ORIENTATION_RIGHT
icculus@1251
    37
} SDL_ScreenOrientation;
icculus@1251
    38
slouken@0
    39
/* Private display data */
slouken@0
    40
struct SDL_PrivateVideoData {
slouken@0
    41
    HBITMAP screen_bmp;
slouken@0
    42
    HPALETTE screen_pal;
slouken@0
    43
icculus@3981
    44
    int allow_screensaver;
icculus@3981
    45
slouken@0
    46
#define NUM_MODELISTS	4		/* 8, 16, 24, and 32 bits-per-pixel */
slouken@0
    47
    int SDL_nummodes[NUM_MODELISTS];
slouken@0
    48
    SDL_Rect **SDL_modelist[NUM_MODELISTS];
icculus@1251
    49
icculus@1251
    50
	SDL_ScreenOrientation orientation;
slouken@1465
    51
#ifdef _WIN32_WCE
slouken@1465
    52
	int invert; /* do to remove, used by GAPI driver! */
slouken@1465
    53
	char hiresFix; /* using hires mode without defining hires resource */
slouken@1465
    54
	int supportRotation; /* for Pocket PC devices */
slouken@1465
    55
	DWORD origRotation; /* for Pocket PC devices */
slouken@1465
    56
#endif
slouken@0
    57
};
slouken@0
    58
/* Old variable names */
slouken@0
    59
#define screen_bmp		(this->hidden->screen_bmp)
slouken@0
    60
#define screen_pal		(this->hidden->screen_pal)
slouken@0
    61
#define SDL_nummodes		(this->hidden->SDL_nummodes)
slouken@0
    62
#define SDL_modelist		(this->hidden->SDL_modelist)
slouken@0
    63
slouken@0
    64
#endif /* _SDL_dibvideo_h */