src/video/riscos/SDL_riscosvideo.h
author Sam Lantinga <slouken@libsdl.org>
Wed, 05 Nov 2003 23:11:05 +0000
changeset 733 9557ac1857a3
parent 630 550bccdf04bd
child 769 b8d311d90021
permissions -rw-r--r--
Date: Mon, 13 Oct 2003 13:37:18 +0100
From: "alan buckley"
Subject: Modification for RISC OS SDL port (SDL_riscosevents.c)

This modification improves the key press to Unicode character translation.
slouken@630
     1
/*
slouken@630
     2
    SDL - Simple DirectMedia Layer
slouken@630
     3
    Copyright (C) 1997, 1998, 1999, 2000, 2001  Sam Lantinga
slouken@630
     4
slouken@630
     5
    This library is free software; you can redistribute it and/or
slouken@630
     6
    modify it under the terms of the GNU Library General Public
slouken@630
     7
    License as published by the Free Software Foundation; either
slouken@630
     8
    version 2 of the License, or (at your option) any later version.
slouken@630
     9
slouken@630
    10
    This library is distributed in the hope that it will be useful,
slouken@630
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@630
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@630
    13
    Library General Public License for more details.
slouken@630
    14
slouken@630
    15
    You should have received a copy of the GNU Library General Public
slouken@630
    16
    License along with this library; if not, write to the Free
slouken@630
    17
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
slouken@630
    18
slouken@630
    19
    Sam Lantinga
slouken@630
    20
    slouken@devolution.com
slouken@630
    21
*/
slouken@630
    22
slouken@630
    23
#ifdef SAVE_RCSID
slouken@630
    24
static char rcsid =
slouken@630
    25
 "@(#) $Id$";
slouken@630
    26
#endif
slouken@630
    27
slouken@630
    28
#ifndef _SDL_riscosvideo_h
slouken@630
    29
#define _SDL_riscosvideo_h
slouken@630
    30
slouken@630
    31
#include "SDL_mouse.h"
slouken@630
    32
#include "SDL_sysvideo.h"
slouken@630
    33
#include "SDL_mutex.h"
slouken@630
    34
slouken@630
    35
/* Hidden "this" pointer for the video functions */
slouken@630
    36
#define _THIS	SDL_VideoDevice *this
slouken@630
    37
slouken@630
    38
slouken@630
    39
/* Private display data */
slouken@630
    40
slouken@630
    41
struct SDL_PrivateVideoData {
slouken@630
    42
    unsigned char *bank[2];
slouken@630
    43
    int current_bank;
slouken@630
    44
	unsigned char *alloc_bank;
slouken@630
    45
    int height;
slouken@630
    46
    int xeig;
slouken@630
    47
    int yeig;
slouken@630
    48
	int screen_bpp;
slouken@630
    49
	int screen_width;
slouken@630
    50
	int screen_height;
slouken@630
    51
	char *pixtrans;
slouken@630
    52
slouken@630
    53
	/* Wimp variables */
slouken@630
    54
	unsigned int window_handle;
slouken@630
    55
	char title[256];
slouken@630
    56
slouken@630
    57
#define NUM_MODELISTS	4		/* 8, 16, 24, and 32 bits-per-pixel */
slouken@630
    58
    int SDL_nummodes[NUM_MODELISTS];
slouken@630
    59
    SDL_Rect **SDL_modelist[NUM_MODELISTS];
slouken@630
    60
};
slouken@630
    61
slouken@630
    62
/* Old variable names */
slouken@630
    63
#define SDL_nummodes		(this->hidden->SDL_nummodes)
slouken@630
    64
#define SDL_modelist		(this->hidden->SDL_modelist)
slouken@630
    65
slouken@630
    66
#endif /* _SDL_risosvideo_h */