Mercurial > mm7
comparison UI/UIMainMenu.cpp @ 2152:d44b7775fc06
Removed DirectDraw2 compatibility.
3D Sound enabled (change 3DSoundProvider registry entry to activate it).
Moved all forward declarations to mm7_unsorted_subs.h (many cpp files do not need them anyweay).
author | Nomad |
---|---|
date | Thu, 09 Jan 2014 01:37:34 +0200 |
parents | 259df09dfb50 |
children | d28d3c006077 |
comparison
equal
deleted
inserted
replaced
2151:92511cd8fcdb | 2152:d44b7775fc06 |
---|---|
13 #include "..\PaletteManager.h" | 13 #include "..\PaletteManager.h" |
14 #include "..\IconFrameTable.h" | 14 #include "..\IconFrameTable.h" |
15 #include "..\texts.h" | 15 #include "..\texts.h" |
16 | 16 |
17 #include "..\mm7_data.h" | 17 #include "..\mm7_data.h" |
18 #include "..\mm7_unsorted_subs.h" | |
18 | 19 |
19 | 20 |
20 //----- (0041B578) -------------------------------------------------------- | 21 //----- (0041B578) -------------------------------------------------------- |
21 void MainMenuUI_LoadFontsAndSomeStuff() | 22 void MainMenuUI_LoadFontsAndSomeStuff() |
22 { | 23 { |
189 pBtn_NPCRight = pPrimaryWindow->CreateButton(626, 178, | 190 pBtn_NPCRight = pPrimaryWindow->CreateButton(626, 178, |
190 pIcons_LOD->GetTexture(uTextureID_Btn_NPCRight)->uTextureWidth, | 191 pIcons_LOD->GetTexture(uTextureID_Btn_NPCRight)->uTextureWidth, |
191 pIcons_LOD->GetTexture(uTextureID_Btn_NPCRight)->uTextureHeight, | 192 pIcons_LOD->GetTexture(uTextureID_Btn_NPCRight)->uTextureHeight, |
192 1, 0, UIMSG_ScrollNPCPanel, 1, 0, "", pIcons_LOD->GetTexture(uTextureID_Btn_NPCRight), 0); | 193 1, 0, UIMSG_ScrollNPCPanel, 1, 0, "", pIcons_LOD->GetTexture(uTextureID_Btn_NPCRight), 0); |
193 LoadPartyBuffIcons(); | 194 LoadPartyBuffIcons(); |
195 } | |
196 | |
197 | |
198 | |
199 | |
200 //----- (00452AF3) -------------------------------------------------------- | |
201 void __fastcall fill_pixels_fast(unsigned int a1, unsigned __int16 *pPixels, unsigned int uNumPixels) | |
202 { | |
203 void *v3; // edi@1 | |
204 unsigned int v4; // eax@1 | |
205 unsigned __int16 *v5; // edi@3 | |
206 unsigned int i; // ecx@3 | |
207 | |
208 __debugbreak(); // Nomad: sub operates on 16 bit pixels, we have 32 bits. | |
209 | |
210 v3 = pPixels; | |
211 v4 = a1 | (a1 << 16); | |
212 if ( (unsigned __int8)pPixels & 2 ) // first 2 pixels | |
213 { | |
214 *pPixels = v4; | |
215 v3 = pPixels + 1; | |
216 --uNumPixels; | |
217 } | |
218 memset32(v3, v4, uNumPixels >> 1); // 4 pixels at once | |
219 v5 = (unsigned __int16 *)((char *)v3 + 4 * (uNumPixels >> 1)); | |
220 for ( i = uNumPixels & 1; i; --i ) // leftover pixels | |
221 { | |
222 *v5 = v4; | |
223 ++v5; | |
224 } | |
194 } | 225 } |
195 | 226 |
196 //----- (004979D2) -------------------------------------------------------- | 227 //----- (004979D2) -------------------------------------------------------- |
197 MENU_STATE MainMenuUI_Credits_Loop() | 228 MENU_STATE MainMenuUI_Credits_Loop() |
198 { | 229 { |