소스 검색

* Fixed line wrapping on some weird ANSI files.

tags/v0.99.beta14
Sam Hocevar sam 19 년 전
부모
커밋
c117cb2411
1개의 변경된 파일7개의 추가작업 그리고 6개의 파일을 삭제
  1. +7
    -6
      cucul/import.c

+ 7
- 6
cucul/import.c 파일 보기

@@ -226,6 +226,13 @@ static cucul_canvas_t *import_ansi(void const *data, unsigned int size)
{
skip = 1;

/* Wrap long lines */
if((unsigned int)x >= width)
{
x = 0;
y++;
}

if(buffer[i] == '\x1a' && size - i >= 8
&& !memcmp(buffer + i + 1, "SAUCE00", 7))
break; /* End before SAUCE data */
@@ -354,12 +361,6 @@ static cucul_canvas_t *import_ansi(void const *data, unsigned int size)

/* We're going to paste a character. First make sure the canvas
* is big enough. */
if((unsigned int)x >= width)
{
x = 0;
y++;
}

if((unsigned int)y >= height)
{
height = y + 1;


불러오는 중...
취소
저장