# HG changeset patch # User Ritor1 # Date 1379561344 -21600 # Node ID 53291e8f3848255640d94b1b3c5a148cd8ca18cd # Parent c586fa9e4cbb30a6d463e018ffb8c502ee2725d5 m diff -r c586fa9e4cbb -r 53291e8f3848 UI/UIMainMenu.cpp --- a/UI/UIMainMenu.cpp Wed Sep 18 17:23:54 2013 +0600 +++ b/UI/UIMainMenu.cpp Thu Sep 19 09:29:04 2013 +0600 @@ -199,7 +199,6 @@ unsigned int pSize; // esi@7 __int16 pHeight; // ax@9 void *v7; // eax@9 - unsigned int pNumPixels; // ST2C_4@9 unsigned int v10; // ST2C_4@19 MSG Msg; // [sp+84h] [bp-B8h]@10 int v17; // [sp+A0h] [bp-9Ch]@9 @@ -248,9 +247,8 @@ pTexture2.uHeight = pHeight + 2 * credit_window.uFrameHeight; pTexture2.uNumPixels = (signed __int16)pTexture2.uWidth * (signed __int16)pTexture2.uHeight; v7 = malloc(2 * pTexture2.uNumPixels);//, "scrollermap"); - pNumPixels = pTexture2.uNumPixels; pTexture2.pPixels = (unsigned __int16 *)v7; - fill_pixels_fast(TargetColor(0, 0xFFu, 0xFFu), pTexture2.pPixels, pNumPixels); + fill_pixels_fast(TargetColor(0, 0xFFu, 0xFFu), pTexture2.pPixels, pTexture2.uNumPixels); pTexture2._allocation_flags = 0; pString = (char *)malloc(2 * pSize); strncpy(pString, ptr, pSize);