mirror of https://github.com/PCSX2/pcsx2.git
GregMiscellaneous: zzogl-pg:
* Properly fix the 'missing external linkage' thanks to Gigaherz. git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3773 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
bed38e12a0
commit
a51455656a
|
@ -542,7 +542,9 @@ typedef struct
|
|||
|
||||
extern GSinternal gs;
|
||||
|
||||
static __forceinline u16 RGBA32to16(u32 c)
|
||||
// Note the function is used in a template parameter so it must be declared extern
|
||||
// Note2: In this case extern is not compatible with __forceinline so just inline it...
|
||||
extern inline u16 RGBA32to16(u32 c)
|
||||
{
|
||||
return (u16)((((c) & 0x000000f8) >> 3) |
|
||||
(((c) & 0x0000f800) >> 6) |
|
||||
|
|
|
@ -2928,14 +2928,6 @@ void FlushTransferRanges(const tex0Info* ptex)
|
|||
template <typename T, typename Tret>
|
||||
inline Tret dummy_return(T value) { return value; }
|
||||
|
||||
inline u16 RGBA32to16(u32 c)
|
||||
{
|
||||
return (u16)((((c) & 0x000000f8) >> 3) |
|
||||
(((c) & 0x0000f800) >> 6) |
|
||||
(((c) & 0x00f80000) >> 9) |
|
||||
(((c) & 0x80000000) >> 16));
|
||||
}
|
||||
|
||||
template <typename T, typename Tsrc, T (*convfn)(Tsrc)>
|
||||
inline void Resolve_32_Bit(const void* psrc, int fbp, int fbw, int fbh, const int psm, u32 fbm)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue