Skip to content
Permalink
Browse files

Moved rect_edge.png into source code

  • Loading branch information...
ccw808 committed Jul 13, 2018
1 parent 2de8d90 commit 4e57a8b1977a5a500172f86c3202297f9c11eb7b
@@ -23,6 +23,18 @@ using namespace std;
template <>
CGraphics* CSingleton<CGraphics>::m_pSingleton = NULL;

const SColor g_rectEdgePixelsData[] = {
0x00FFFF00, 0x00FFFFFF, 0x00FFFFFF, 0x00FFFFFF, 0x00FFFFFF, 0x00FFFFFF, 0x00FFFFFF, 0x00FFFFFF, //
0x00FFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0x00FFFFFF, //
0x00FFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0x00FFFFFF, //
0x00FFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0x00FFFFFF, //
0x00FFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0x00FFFFFF, //
0x00FFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0x00FFFFFF, //
0x00FFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0x00FFFFFF, //
0x00FFFFFF, 0x00FFFFFF, 0x00FFFFFF, 0x00FFFFFF, 0x00FFFFFF, 0x00FFFFFF, 0x00FFFFFF, 0x00FFFFFF, //
0x00080008 // Plain pixels size info
};

CGraphics::CGraphics(CLocalGUI* pGUI)
{
m_pGUI = pGUI;
@@ -1267,8 +1279,8 @@ void CGraphics::OnDeviceCreate(IDirect3DDevice9* pDevice)
m_pPixelsManager->OnDeviceCreate(pDevice);
m_ProgressSpinnerTexture =
GetRenderItemManager()->CreateTexture(CalcMTASAPath("MTA\\cgui\\images\\busy_spinner.png"), NULL, false, -1, -1, RFORMAT_DXT3, TADDRESS_CLAMP);
m_RectangleEdgeTexture =
GetRenderItemManager()->CreateTexture(CalcMTASAPath("MTA\\cgui\\images\\rect_edge.png"), NULL, false, 8, 8, RFORMAT_ARGB, TADDRESS_CLAMP);
CPixels rectEdge = {CBuffer(g_rectEdgePixelsData, sizeof(g_rectEdgePixelsData))};
m_RectangleEdgeTexture = GetRenderItemManager()->CreateTexture(nullptr, &rectEdge, false, 8, 8, RFORMAT_ARGB, TADDRESS_CLAMP);
m_pAspectRatioConverter->Init(GetViewportHeight());
}

@@ -765,7 +765,6 @@ void CheckDataFiles(void)
const char* dataFilesFiles[] = {"MTA\\cgui\\images\\background_logo.png",
"MTA\\cgui\\images\\radarset\\up.png",
"MTA\\cgui\\images\\busy_spinner.png",
"MTA\\cgui\\images\\rect_edge.png",
"MTA\\D3DX9_42.dll",
"MTA\\D3DCompiler_42.dll",
"MTA\\bass.dll",
Binary file not shown.

0 comments on commit 4e57a8b

Please sign in to comment.
You can’t perform that action at this time.