summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/guic.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-10 00:18:32 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-10 00:18:32 +0000
commit9f29aa11e3a5fceadf1ac2906283b86e5700659b (patch)
treebb5e30bb30542b00188da1b043e17a75f946b442 /crawl-ref/source/guic.cc
parente262ce4eaaf15dce979f563beaa33c73503d089a (diff)
downloadcrawl-ref-9f29aa11e3a5fceadf1ac2906283b86e5700659b.tar.gz
crawl-ref-9f29aa11e3a5fceadf1ac2906283b86e5700659b.zip
Fixing compilation issues from ghost changes.
Fixing incorrect asserts in tiles code. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3236 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/guic.cc')
-rw-r--r--crawl-ref/source/guic.cc42
1 files changed, 0 insertions, 42 deletions
diff --git a/crawl-ref/source/guic.cc b/crawl-ref/source/guic.cc
index 5c29797a5c..f5f0cdc862 100644
--- a/crawl-ref/source/guic.cc
+++ b/crawl-ref/source/guic.cc
@@ -518,34 +518,7 @@ void TextRegionClass::scroll()
void TextRegionClass::adjust_region(int *x1, int *x2, int y)
{
-#ifdef JP
- if (dos_char)
- {
- *x2 = *x2 + 1;
- return;
- }
-
- int nx1 = 0;
- int nx2 = mx;
- unsigned char *ptr = &cbuf[y * mx];
- int x = 0;
-
- while (x<mx)
- {
- if(x<=*x1) nx1=x;
- if(x>*x2)
- {
- nx2=x;
- break;
- }
- if (ptr[x] & 0x80) x+=2;
- else x++;
- }
- *x1 = nx1;
- *x2 = nx2;
-#else
*x2 = *x2 + 1;
-#endif
}
void TextRegionClass::addstr(char *buffer)
@@ -605,14 +578,6 @@ void TextRegionClass::addstr_aux(char *buffer, int len)
adjust_region(&head, &tail, y);
-#ifdef JP
- // prevent half displayed kanji
- cbuf[adrs+head] = ' ';
- abuf[adrs+head] = text_col;
- cbuf[adrs+tail-1] = ' ';
- abuf[adrs+tail-1] = text_col;
-#endif
-
for (i=0; i < len && x + i < mx;i++)
{
cbuf[adrs+x+i]=buffer[i];
@@ -650,14 +615,7 @@ void TextRegionClass::redraw(int x1, int y1, int x2, int y2)
draw_string(head, y, &c[head], x-head, oldcol);
head = x;
}
-#ifdef JP
- if ( ((c[x] & 0x80) == 0x80) && (dos_char == false))
- x+=2;
- else
- x++;
-#else
x++;
-#endif
}
}