mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Move some shared gfx plugin code into VideoCommon. Changed "Renderer" class to use virtual functions. (setting stuff up for video plugin merging)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6433 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -59,7 +59,6 @@ enum
|
||||
|
||||
extern SVideoInitialize g_VideoInitialize;
|
||||
|
||||
|
||||
inline u8 *Memory_GetPtr(u32 _uAddress)
|
||||
{
|
||||
return g_VideoInitialize.pGetMemoryPointer(_uAddress);
|
||||
@ -123,10 +122,16 @@ struct TargetRectangle : public MathUtil::Rectangle<int>
|
||||
{
|
||||
#ifdef _WIN32
|
||||
// Only used by D3D plugin.
|
||||
const RECT *AsRECT() const {
|
||||
const RECT *AsRECT() const
|
||||
{
|
||||
// The types are binary compatible so this works.
|
||||
return (const RECT *)this;
|
||||
}
|
||||
RECT *AsRECT()
|
||||
{
|
||||
// The types are binary compatible so this works.
|
||||
return (RECT *)this;
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user