1.1 --- a/src/video/gem/SDL_gemevents_c.h Fri Jul 13 22:55:15 2007 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,33 +0,0 @@
1.4 -/*
1.5 - SDL - Simple DirectMedia Layer
1.6 - Copyright (C) 1997-2006 Sam Lantinga
1.7 -
1.8 - This library is free software; you can redistribute it and/or
1.9 - modify it under the terms of the GNU Lesser General Public
1.10 - License as published by the Free Software Foundation; either
1.11 - version 2.1 of the License, or (at your option) any later version.
1.12 -
1.13 - This library is distributed in the hope that it will be useful,
1.14 - but WITHOUT ANY WARRANTY; without even the implied warranty of
1.15 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1.16 - Lesser General Public License for more details.
1.17 -
1.18 - You should have received a copy of the GNU Lesser General Public
1.19 - License along with this library; if not, write to the Free Software
1.20 - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1.21 -
1.22 - Sam Lantinga
1.23 - slouken@libsdl.org
1.24 -*/
1.25 -#include "SDL_config.h"
1.26 -
1.27 -#include "SDL_gemvideo.h"
1.28 -
1.29 -/* Variables and functions exported by SDL_sysevents.c to other parts
1.30 - of the native video subsystem (SDL_sysvideo.c) */
1.31 -
1.32 -extern void GEM_InitOSKeymap(_THIS);
1.33 -extern void GEM_PumpEvents(_THIS);
1.34 -
1.35 -/* end of SDL_gemevents_c.h */
1.36 -/* vi: set ts=4 sw=4 expandtab: */
2.1 --- a/src/video/gem/SDL_gemmouse_c.h Fri Jul 13 22:55:15 2007 +0000
2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
2.3 @@ -1,36 +0,0 @@
2.4 -/*
2.5 - SDL - Simple DirectMedia Layer
2.6 - Copyright (C) 1997-2006 Sam Lantinga
2.7 -
2.8 - This library is free software; you can redistribute it and/or
2.9 - modify it under the terms of the GNU Lesser General Public
2.10 - License as published by the Free Software Foundation; either
2.11 - version 2.1 of the License, or (at your option) any later version.
2.12 -
2.13 - This library is distributed in the hope that it will be useful,
2.14 - but WITHOUT ANY WARRANTY; without even the implied warranty of
2.15 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2.16 - Lesser General Public License for more details.
2.17 -
2.18 - You should have received a copy of the GNU Lesser General Public
2.19 - License along with this library; if not, write to the Free Software
2.20 - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2.21 -
2.22 - Sam Lantinga
2.23 - slouken@libsdl.org
2.24 -*/
2.25 -#include "SDL_config.h"
2.26 -
2.27 -#include "SDL_gemvideo.h"
2.28 -
2.29 -/* Functions to be exported */
2.30 -extern void GEM_FreeWMCursor(_THIS, WMcursor * cursor);
2.31 -extern WMcursor *GEM_CreateWMCursor(_THIS,
2.32 - Uint8 * data, Uint8 * mask, int w, int h,
2.33 - int hot_x, int hot_y);
2.34 -extern int GEM_ShowWMCursor(_THIS, WMcursor * cursor);
2.35 -#if 0
2.36 -extern void GEM_WarpWMCursor(_THIS, Uint16 x, Uint16 y);
2.37 -#endif
2.38 -extern void GEM_CheckMouseMode(_THIS);
2.39 -/* vi: set ts=4 sw=4 expandtab: */
3.1 --- a/src/video/gem/SDL_gemwm.c Fri Jul 13 22:55:15 2007 +0000
3.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
3.3 @@ -1,123 +0,0 @@
3.4 -/*
3.5 - SDL - Simple DirectMedia Layer
3.6 - Copyright (C) 1997-2006 Sam Lantinga
3.7 -
3.8 - This library is free software; you can redistribute it and/or
3.9 - modify it under the terms of the GNU Lesser General Public
3.10 - License as published by the Free Software Foundation; either
3.11 - version 2.1 of the License, or (at your option) any later version.
3.12 -
3.13 - This library is distributed in the hope that it will be useful,
3.14 - but WITHOUT ANY WARRANTY; without even the implied warranty of
3.15 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3.16 - Lesser General Public License for more details.
3.17 -
3.18 - You should have received a copy of the GNU Lesser General Public
3.19 - License along with this library; if not, write to the Free Software
3.20 - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
3.21 -
3.22 - Sam Lantinga
3.23 - slouken@libsdl.org
3.24 -*/
3.25 -#include "SDL_config.h"
3.26 -
3.27 -/*
3.28 - GEM SDL video driver
3.29 - Window manager functions
3.30 -
3.31 - Patrice Mandin
3.32 -*/
3.33 -
3.34 -/* Mint includes */
3.35 -#include <gem.h>
3.36 -
3.37 -#include "SDL_gemwm_c.h"
3.38 -
3.39 -/* Defines */
3.40 -
3.41 -#define ICONWIDTH 64
3.42 -#define ICONHEIGHT 64
3.43 -
3.44 -/* Functions */
3.45 -
3.46 -void
3.47 -GEM_SetCaption(_THIS, const char *title, const char *icon)
3.48 -{
3.49 - if (title) {
3.50 - GEM_title_name = title;
3.51 - GEM_refresh_name = SDL_TRUE;
3.52 - }
3.53 -
3.54 - if (icon) {
3.55 - GEM_icon_name = icon;
3.56 - GEM_refresh_name = SDL_TRUE;
3.57 - }
3.58 -}
3.59 -
3.60 -void
3.61 -GEM_SetIcon(_THIS, SDL_Surface * icon, Uint8 * mask)
3.62 -{
3.63 - SDL_Surface *sicon;
3.64 - SDL_Rect bounds;
3.65 -
3.66 -#if 0
3.67 - if ((GEM_wfeatures & (1 << WF_ICONIFY)) == 0) {
3.68 - return;
3.69 - }
3.70 -#endif
3.71 -
3.72 - if (icon == NULL) {
3.73 - return;
3.74 - }
3.75 -
3.76 - /* Convert icon to the screen format */
3.77 - sicon = SDL_CreateRGBSurface(SDL_SWSURFACE, icon->w, icon->h,
3.78 - VDI_bpp, VDI_redmask, VDI_greenmask,
3.79 - VDI_bluemask, 0);
3.80 - if (sicon == NULL) {
3.81 - return;
3.82 - }
3.83 -
3.84 - bounds.x = 0;
3.85 - bounds.y = 0;
3.86 - bounds.w = icon->w;
3.87 - bounds.h = icon->h;
3.88 - if (SDL_LowerBlit(icon, &bounds, sicon, &bounds) < 0) {
3.89 - SDL_FreeSurface(sicon);
3.90 - return;
3.91 - }
3.92 -
3.93 - GEM_icon = sicon;
3.94 -}
3.95 -
3.96 -int
3.97 -GEM_IconifyWindow(_THIS)
3.98 -{
3.99 - if ((GEM_wfeatures & (1 << WF_ICONIFY)) == 0)
3.100 - return 0;
3.101 -
3.102 - GEM_message[0] = WM_ICONIFY;
3.103 - GEM_message[1] = gl_apid;
3.104 - GEM_message[2] = 0;
3.105 - GEM_message[3] = GEM_handle;
3.106 - GEM_message[4] = 0;
3.107 - GEM_message[5] = GEM_desk_h - ICONHEIGHT;
3.108 - GEM_message[6] = ICONWIDTH;
3.109 - GEM_message[7] = ICONHEIGHT;
3.110 -
3.111 - appl_write(gl_apid, sizeof(GEM_message), GEM_message);
3.112 -
3.113 - return 1;
3.114 -}
3.115 -
3.116 -SDL_GrabMode
3.117 -GEM_GrabInput(_THIS, SDL_GrabMode mode)
3.118 -{
3.119 - if (this->screen == NULL) {
3.120 - return SDL_GRAB_OFF;
3.121 - }
3.122 -
3.123 - return mode;
3.124 -}
3.125 -
3.126 -/* vi: set ts=4 sw=4 expandtab: */
4.1 --- a/src/video/gem/SDL_gemwm_c.h Fri Jul 13 22:55:15 2007 +0000
4.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
4.3 @@ -1,38 +0,0 @@
4.4 -/*
4.5 - SDL - Simple DirectMedia Layer
4.6 - Copyright (C) 1997-2006 Sam Lantinga
4.7 -
4.8 - This library is free software; you can redistribute it and/or
4.9 - modify it under the terms of the GNU Lesser General Public
4.10 - License as published by the Free Software Foundation; either
4.11 - version 2.1 of the License, or (at your option) any later version.
4.12 -
4.13 - This library is distributed in the hope that it will be useful,
4.14 - but WITHOUT ANY WARRANTY; without even the implied warranty of
4.15 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4.16 - Lesser General Public License for more details.
4.17 -
4.18 - You should have received a copy of the GNU Lesser General Public
4.19 - License along with this library; if not, write to the Free Software
4.20 - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
4.21 -
4.22 - Sam Lantinga
4.23 - slouken@libsdl.org
4.24 -*/
4.25 -#include "SDL_config.h"
4.26 -
4.27 -/*
4.28 - * GEM SDL video driver implementation
4.29 - * Window manager functions
4.30 - *
4.31 - * Patrice Mandin
4.32 - */
4.33 -
4.34 -#include "SDL_gemvideo.h"
4.35 -
4.36 -/* Functions prototypes */
4.37 -extern void GEM_SetCaption(_THIS, const char *title, const char *icon);
4.38 -extern void GEM_SetIcon(_THIS, SDL_Surface * icon, Uint8 * mask);
4.39 -extern int GEM_IconifyWindow(_THIS);
4.40 -extern SDL_GrabMode GEM_GrabInput(_THIS, SDL_GrabMode mode);
4.41 -/* vi: set ts=4 sw=4 expandtab: */