Some orthograph corrections
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
parent
052e018063
commit
70818bd58c
4 changed files with 43 additions and 46 deletions
10
src/Main.cpp
10
src/Main.cpp
|
@ -236,7 +236,7 @@ int main(int argc, char *argv[])
|
||||||
printf("Failed to load cursor\n");
|
printf("Failed to load cursor\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
//Get window dimensions and colour depth
|
// Get window dimensions and color depth
|
||||||
int windowWidth;
|
int windowWidth;
|
||||||
int windowHeight;
|
int windowHeight;
|
||||||
int colourDepth;
|
int colourDepth;
|
||||||
|
@ -283,7 +283,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
if (gWindow)
|
if (gWindow)
|
||||||
{
|
{
|
||||||
//Set colour depth
|
// Set color depth
|
||||||
switch (config.display_mode)
|
switch (config.display_mode)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
@ -489,10 +489,8 @@ bool SystemTask()
|
||||||
case SDL_KEYUP:
|
case SDL_KEYUP:
|
||||||
#ifdef FIX_BUGS
|
#ifdef FIX_BUGS
|
||||||
// BUG FIX: Pixel relied on key codes for input, but these differ based on keyboard layout.
|
// BUG FIX: Pixel relied on key codes for input, but these differ based on keyboard layout.
|
||||||
//This would break the alternate movement keys on typical English keyboards, since the '=' key
|
// This would break the alternate movement keys on typical English keyboards, since the '=' key is in a completely different place to where it is on a Japanese keyboard.
|
||||||
//is in a completely different place to where it is on a Japanese keyboard.
|
// To solve this, we use scan codes instead, which are based on the physical location of keys, rather than their meaning.
|
||||||
//To solve this, we use scancodes instead, which are based on the physical location of keys,
|
|
||||||
//rather than their meaning.
|
|
||||||
switch (event.key.keysym.scancode)
|
switch (event.key.keysym.scancode)
|
||||||
{
|
{
|
||||||
case SDL_SCANCODE_ESCAPE:
|
case SDL_SCANCODE_ESCAPE:
|
||||||
|
|
|
@ -80,12 +80,11 @@ void ReadyMapName(const char *str)
|
||||||
str = (char*)presentText;
|
str = (char*)presentText;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy map's name to the MapName
|
// Copy map's name to the global map name
|
||||||
strcpy(gMapName.name, str);
|
strcpy(gMapName.name, str);
|
||||||
|
|
||||||
// Draw the text to the surface
|
// Draw the text to the surface
|
||||||
a = (int)strlen(gMapName.name);
|
a = (int)strlen(gMapName.name);
|
||||||
|
|
||||||
CortBox2(&rc, 0, SURFACE_ID_ROOM_NAME);
|
CortBox2(&rc, 0, SURFACE_ID_ROOM_NAME);
|
||||||
PutText2((160 - 6 * a) / 2 + 6, 1, gMapName.name, RGB(0x11, 0x00, 0x22), SURFACE_ID_ROOM_NAME);
|
PutText2((160 - 6 * a) / 2 + 6, 1, gMapName.name, RGB(0x11, 0x00, 0x22), SURFACE_ID_ROOM_NAME);
|
||||||
PutText2((160 - 6 * a) / 2 + 6, 0, gMapName.name, RGB(0xFF, 0xFF, 0xFE), SURFACE_ID_ROOM_NAME);
|
PutText2((160 - 6 * a) / 2 + 6, 0, gMapName.name, RGB(0xFF, 0xFF, 0xFE), SURFACE_ID_ROOM_NAME);
|
||||||
|
|
Loading…
Add table
Reference in a new issue