Merge pull request #23 from GabrielRavier/improveCToE
Improve files starting with C, D and E
This commit is contained in:
commit
c06b30c680
6 changed files with 115 additions and 114 deletions
|
@ -469,8 +469,7 @@ void ActCaret17(CARET *crt)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tables
|
// Tables
|
||||||
CARET_TABLE gCaretTable[18] =
|
CARET_TABLE gCaretTable[18] = {
|
||||||
{
|
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0x800, 0x800},
|
{0x800, 0x800},
|
||||||
{0x1000, 0x1000},
|
{0x1000, 0x1000},
|
||||||
|
|
|
@ -441,7 +441,6 @@ static void DrawBitmap(RECT *rcView, int x, int y, RECT *rect, Surface_Ids surf_
|
||||||
|
|
||||||
// Get SDL_Rects
|
// Get SDL_Rects
|
||||||
SDL_Rect clipRect = RectToSDLRectScaled(rcView);
|
SDL_Rect clipRect = RectToSDLRectScaled(rcView);
|
||||||
|
|
||||||
SDL_Rect frameRect = RectToSDLRectScaled(rect);
|
SDL_Rect frameRect = RectToSDLRectScaled(rect);
|
||||||
|
|
||||||
// Get dest rect
|
// Get dest rect
|
||||||
|
@ -568,10 +567,13 @@ void InitTextObject(const char *font_name)
|
||||||
fontHeight = 12;
|
fontHeight = 12;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{*/
|
{
|
||||||
|
fontWidth = 5 * magnification;
|
||||||
|
fontHeight = 10 * magnification;
|
||||||
|
}*/
|
||||||
|
|
||||||
fontWidth = 5 * magnification;
|
fontWidth = 5 * magnification;
|
||||||
fontHeight = 10 * magnification;
|
fontHeight = 10 * magnification;
|
||||||
// }
|
|
||||||
|
|
||||||
size_t data_size;
|
size_t data_size;
|
||||||
#ifdef WINDOWS
|
#ifdef WINDOWS
|
||||||
|
|
|
@ -170,7 +170,7 @@ bool StartCreditScript()
|
||||||
if (Credit.size == -1)
|
if (Credit.size == -1)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
//Allcoate buffer data
|
// Allocate buffer data
|
||||||
Credit.pData = (char*)malloc(Credit.size);
|
Credit.pData = (char*)malloc(Credit.size);
|
||||||
if (Credit.pData == NULL)
|
if (Credit.pData == NULL)
|
||||||
return false;
|
return false;
|
||||||
|
@ -276,7 +276,7 @@ void ActionCredit_Read()
|
||||||
{
|
{
|
||||||
if (Credit.pData[Credit.offset] == 'l')
|
if (Credit.pData[Credit.offset] == 'l')
|
||||||
{
|
{
|
||||||
//what is this
|
// What is this
|
||||||
a = GetScriptNumber(&Credit.pData[++Credit.offset]);
|
a = GetScriptNumber(&Credit.pData[++Credit.offset]);
|
||||||
Credit.offset += 4;
|
Credit.offset += 4;
|
||||||
if (b == a)
|
if (b == a)
|
||||||
|
|
|
@ -33,7 +33,7 @@ struct ISLAND_SPRITE
|
||||||
int y;
|
int y;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MAX_STRIP (WINDOW_HEIGHT / 16) + 1
|
#define MAX_STRIP ((WINDOW_HEIGHT / 16) + 1)
|
||||||
|
|
||||||
void ActionStripper();
|
void ActionStripper();
|
||||||
void PutStripper();
|
void PutStripper();
|
||||||
|
|
Loading…
Add table
Reference in a new issue