GSdx: updated linux project files.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4329 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gabest11 2011-02-20 19:21:18 +00:00
parent dcf81693f6
commit 564c44bf7e
3 changed files with 29 additions and 13 deletions

View File

@ -63,8 +63,6 @@ bool GSTextureSW::Update(const GSVector4i& r, const void* data, int pitch)
bool GSTextureSW::Map(GSMap& m, const GSVector4i* r)
{
HRESULT hr;
if(m_data != NULL && r->left >= 0 && r->right <= m_size.x && r->top >= 0 && r->bottom <= m_size.y)
{
if(!_interlockedbittestandset(&m_mapped, 0))
@ -112,6 +110,8 @@ struct BITMAPINFOHEADER
uint32 biClrImportant;
};
#define BI_RGB 0
#pragma pack(pop)
#endif
@ -126,19 +126,23 @@ bool GSTextureSW::Save(const string& fn, bool dds)
memset(&bih, 0, sizeof(bih));
bih.biSize = sizeof(bih);
bih.biWidth = m_size.x;
bih.biHeight = m_size.y;
bih.biPlanes = 1;
bih.biBitCount = 32;
bih.biCompression = BI_RGB;
bih.biSizeImage = m_size.x * m_size.y << 2;
bih.biSize = sizeof(bih);
bih.biWidth = m_size.x;
bih.biHeight = m_size.y;
bih.biPlanes = 1;
bih.biBitCount = 32;
bih.biCompression = BI_RGB;
bih.biSizeImage = m_size.x * m_size.y << 2;
BITMAPFILEHEADER bfh;
memset(&bfh, 0, sizeof(bfh));
bfh.bfType = 'MB';
uint8* bfType = (uint8*)bfh.bfType;
// bfh.bfType = 'MB';
bfType[0] = 0x42;
bfType[1] = 0x4d;
bfh.bfOffBits = sizeof(bfh) + sizeof(bih);
bfh.bfSize = bfh.bfOffBits + bih.biSizeImage;
bfh.bfReserved1 = bfh.bfReserved2 = 0;

View File

@ -82,6 +82,8 @@
<Unit filename="GSDevice.h" />
<Unit filename="GSDeviceNull.cpp" />
<Unit filename="GSDeviceNull.h" />
<Unit filename="GSDeviceSW.cpp" />
<Unit filename="GSDeviceSW.h" />
<Unit filename="GSDirtyRect.cpp" />
<Unit filename="GSDirtyRect.h" />
<Unit filename="GSDrawScanline.cpp" />
@ -124,6 +126,8 @@
<Unit filename="GSTextureCacheSW.h" />
<Unit filename="GSTextureNull.cpp" />
<Unit filename="GSTextureNull.h" />
<Unit filename="GSTextureSW.cpp" />
<Unit filename="GSTextureSW.h" />
<Unit filename="GSThread.cpp" />
<Unit filename="GSThread.h" />
<Unit filename="GSUtil.cpp" />

View File

@ -13,6 +13,10 @@
<Option compiler="icc" />
<Option createDefFile="1" />
<Option createStaticLib="1" />
<Compiler>
<Add option="-O0" />
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="bin/Release/libGSdx" prefix_auto="1" extension_auto="1" />
@ -22,7 +26,7 @@
<Option createDefFile="1" />
<Option createStaticLib="1" />
<Compiler>
<Add option="-Ob2" />
<Add option="-msse2" />
<Add option="-O2" />
</Compiler>
</Target>
@ -73,6 +77,8 @@
<Unit filename="GSDevice.h" />
<Unit filename="GSDeviceNull.cpp" />
<Unit filename="GSDeviceNull.h" />
<Unit filename="GSDeviceSW.cpp" />
<Unit filename="GSDeviceSW.h" />
<Unit filename="GSDirtyRect.cpp" />
<Unit filename="GSDirtyRect.h" />
<Unit filename="GSDrawScanline.cpp" />
@ -114,6 +120,8 @@
<Unit filename="GSTextureCacheSW.h" />
<Unit filename="GSTextureNull.cpp" />
<Unit filename="GSTextureNull.h" />
<Unit filename="GSTextureSW.cpp" />
<Unit filename="GSTextureSW.h" />
<Unit filename="GSThread.cpp" />
<Unit filename="GSThread.h" />
<Unit filename="GSUtil.cpp" />