1 /*************************************************************************** 2 gpu.h - description 3 ------------------- 4 begin : Sun Mar 08 2009 5 copyright : (C) 1999-2009 by Pete Bernert 6 web : www.pbernert.com 7 ***************************************************************************/ 8 9 /*************************************************************************** 10 * * 11 * This program is free software; you can redistribute it and/or modify * 12 * it under the terms of the GNU General Public License as published by * 13 * the Free Software Foundation; either version 2 of the License, or * 14 * (at your option) any later version. See also the license.txt file for * 15 * additional informations. * 16 * * 17 ***************************************************************************/ 18 19 #ifndef _GPU_INTERNALS_H 20 #define _GPU_INTERNALS_H 21 22 #define PRED(x) ((x << 3) & 0xF8) 23 #define PBLUE(x) ((x >> 2) & 0xF8) 24 #define PGREEN(x) ((x >> 7) & 0xF8) 25 26 #define RED(x) (x & 0xff) 27 #define BLUE(x) ((x>>16) & 0xff) 28 #define GREEN(x) ((x>>8) & 0xff) 29 #define COLOR(x) (x & 0xffffff) 30 31 void DoSnapShot(void); 32 void updateDisplay(void); 33 void updateFrontDisplay(void); 34 void SetAutoFrameCap(void); 35 void SetAspectRatio(void); 36 void CheckVRamRead(int x, int y, int dx, int dy,BOOL bFront); 37 void CheckVRamReadEx(int x, int y, int dx, int dy); 38 void SetFixes(void); 39 40 #endif // _GPU_INTERNALS_H 41