src/video/qtopia/SDL_lowvideo.h
author Ozkan Sezer <sezeroz@gmail.com>
Sun, 14 Oct 2018 15:25:04 +0300
branchSDL-1.2
changeset 12325 c4f2eeda176f
parent 6137 4720145f848b
permissions -rw-r--r--
remove symlink for libSDL-1.0.so.0 from the rpm spec file.

also fix a changelog date.
slouken@371
     1
/*
slouken@371
     2
    SDL - Simple DirectMedia Layer
slouken@6137
     3
    Copyright (C) 1997-2012 Sam Lantinga
slouken@371
     4
slouken@371
     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@371
     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@371
     9
slouken@371
    10
    This library is distributed in the hope that it will be useful,
slouken@371
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@371
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1312
    13
    Lesser General Public License for more details.
slouken@371
    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@371
    18
slouken@371
    19
    Sam Lantinga
slouken@371
    20
    slouken@libsdl.org
slouken@371
    21
*/
slouken@1402
    22
#include "SDL_config.h"
slouken@371
    23
slouken@371
    24
#ifndef _SDL_lowvideo_h
slouken@371
    25
#define _SDL_lowvideo_h
slouken@371
    26
slouken@371
    27
#include "SDL_mouse.h"
slouken@1361
    28
#include "../SDL_sysvideo.h"
slouken@371
    29
slouken@371
    30
/* Hidden "this" pointer for the video functions */
slouken@371
    31
#define _THIS	SDL_VideoDevice *_this
slouken@371
    32
slouken@371
    33
/* Private display data */
slouken@371
    34
struct SDL_PrivateVideoData {
slouken@371
    35
  /* The main window */
slouken@371
    36
  SDL_QWin *SDL_Win;
slouken@371
    37
slouken@371
    38
  /* The fullscreen mode list */
slouken@371
    39
#define NUM_MODELISTS	4		/* 8, 16, 24, and 32 bits-per-pixel */
slouken@371
    40
  int SDL_nummodes[NUM_MODELISTS];
slouken@371
    41
  SDL_Rect **SDL_modelist[NUM_MODELISTS];
slouken@371
    42
slouken@371
    43
  /* A completely clear cursor */
slouken@371
    44
  WMcursor *BlankCursor;
slouken@371
    45
slouken@371
    46
  /* Mouse state variables */
slouken@371
    47
  Uint32 last_buttons;
slouken@371
    48
  QPoint last_point;
slouken@371
    49
slouken@371
    50
  /* Keyboard state variables */
slouken@371
    51
  int key_flip;
slouken@371
    52
  //struct key_info keyinfo[2];
slouken@371
    53
};
slouken@371
    54
/* Old variable names */
slouken@371
    55
#define SDL_Win		(_this->hidden->SDL_Win)
slouken@371
    56
#define saved_mode	(_this->hidden->saved_mode)
slouken@371
    57
#define SDL_nummodes	(_this->hidden->SDL_nummodes)
slouken@371
    58
#define SDL_modelist	(_this->hidden->SDL_modelist)
slouken@371
    59
#define SDL_BlankCursor	(_this->hidden->BlankCursor)
slouken@371
    60
#define last_buttons	(_this->hidden->last_buttons)
slouken@371
    61
#define last_point	(_this->hidden->last_point)
slouken@371
    62
#define key_flip	(_this->hidden->key_flip)
slouken@371
    63
#define keyinfo		(_this->hidden->keyinfo)
slouken@371
    64
slouken@371
    65
#endif /* _SDL_lowvideo_h */