Mercurial > sdl-ios-xcode
annotate src/timer/macos/FastTimes.h @ 19:8cc4dbfab9ab
Date: Thu, 19 Apr 2001 08:36:54 +0300
From: "Mike Gorchak" <mike@malva.com.ua>
Subject: Patches for QNX RtP
Here my patch for QNX RtP/Photon for SDL-1.2.
Detailed description of my changes:
SDL/configure.in:
If Photon detected declare define ENABLE_PHOTON.
SDL/src/video/SDL_sysvideo.h:
Added extern to ph_bootstrap.
SDL/src/video/SDL_video.c:
Added ph_bootstrap to bootstrap array.
SDL/src/video/photon/SDL_ph_events.c:
Declare DISABLE_X11 if compiled for Photon.
SDL/src/video/photon/SDL_ph_image.c:
Fixed segment violation on exit. Please update BUGS file.
SDL/src/video/photon/SDL_ph_video.c:
1. Enabling window manager.
2. Added to device capabilities Photon Window Manager functions:
SetCaption and IconifyWindow.
3. Renamed X11_bootstrap to ph_bootstrap.
4. Removed SEGFAULT termination of programs if Photon not available.
SDL/src/video/photon/SDL_ph_wm.c:
1. Declare DISABLE_X11 if compiled for Photon.
2. Added ph_SetCaption and ph_IconifyWindow code. (Thanks to
'phearbear' for iconify window source).
3. Some stubers for other wm functions.
Thanks !
----------------------------
Mike Gorchak
CJSC Malva
System Programmer
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Thu, 10 May 2001 18:42:17 +0000 |
parents | 74212992fb08 |
children | d910939febfa |
rev | line source |
---|---|
0 | 1 /* File "FastTimes.h" - Original code by Matt Slot <fprefect@ambrosiasw.com> */ |
2 /* Created 4/24/99 - This file is hereby placed in the public domain */ | |
3 /* Updated 5/21/99 - Calibrate to VIA, add TBR support, renamed functions */ | |
4 /* Updated 10/4/99 - Use AbsoluteToNanoseconds() in case Absolute = double */ | |
5 /* Updated 2/15/00 - Check for native Time Manager, no need to calibrate */ | |
6 /* Updated 3/21/00 - Fixed ns conversion, create 2 different scale factors */ | |
7 /* Updated 5/03/00 - Added copyright and placed into PD. No code changes */ | |
8 | |
9 /* This file is Copyright (C) Matt Slot, 1999-2000. It is hereby placed into | |
10 the public domain. The author makes no warranty as to fitness or stability */ | |
11 | |
12 #ifndef __FAST_TIMES_HEADER__ | |
13 #define __FAST_TIMES_HEADER__ | |
14 | |
15 /* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */ | |
16 /* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */ | |
17 | |
18 extern void FastInitialize(void); | |
19 extern UInt64 FastMicroseconds(void); | |
20 extern UInt64 FastMilliseconds(void); | |
21 extern StringPtr FastMethod(void); | |
22 | |
23 /* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */ | |
24 /* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */ | |
25 | |
26 #endif /* __FAST_TIMES_HEADER__ */ |