Fixing message window scrolling not moving the cursor position for input.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3238 c06c8d41-db1a-0410-9941-cceddc491573
BLZC4APKXT76IVDHJ7UHBZQJJVW4FOLLDEDAKAGNLF6LZYMWOWOAC
25CH7HH4LKXFIZ75YNMXS3TSXO6O27DYSOPLOD45K4OCNFWLS4LQC
region_stat = new TextRegionClass(40, 17, 0, 0);
region_stat = new TextRegionClass(crawl_view.hudsz.x, crawl_view.hudsz.y + 1, 0, 0);
region_stat = new TextRegionClass(40, 16, 0, 0);
region_stat = new TextRegionClass(crawl_view.hudsz.x, crawl_view.hudsz.y, 0, 0);
// Class defines
#include "AppHdr.h"#include "debug.h"
#include "AppHdr.h"
#include "debug.h"
/*------------------------------------------*/
// ������
// �I��
/*------------------------------------------*//* �������̏��� * 0 (�e�N���X�̏����A����) * 1 �@�틤�ʏ��� * 2 �@���ˑ����� * * �I�������̏��� * 1 �@���ˑ����� * 2 �@�틤�ʏ��� * (3) (�e�N���X�̏����A����) */
/* �������̏���
* 0 (�e�N���X�̏����A����)
* 1 �@�틤�ʏ���
* 2 �@���ˑ�����
*
* �I�������̏���
* 1 �@���ˑ�����
* 2 �@�틤�ʏ���
* (3) (�e�N���X�̏����A����)
*/
//������
//�I������
// �o�b�N�o�b�t�@���� if (backbuf != NULL) ImgDestroy(backbuf);
// �o�b�N�o�b�t�@����
if (backbuf != NULL) ImgDestroy(backbuf);
if (backbuf != NULL)
ImgDestroy(backbuf);
//�@���ˑ�����
if (print_y > 0) print_y -= 1; if (cursor_y > 0) cursor_y -= 1;
if (print_y > 0)
print_y -= 1;
if (cursor_y > 0)
cursor_y -= 1;
{ scroll(); print_y--; }
{
scroll();
print_y--;
}
if(!flag)return;
if(!flag) return;
if(!flag)
return;
ASSERT(adrs + mx - 1 < mx * my);
cbuf[adrs+i]=' '; abuf[adrs+i]=col;
cbuf[adrs+i]=' ';
abuf[adrs+i]=col;
cbuf[adrs+i] = ' '; abuf[adrs+i] = col;
cbuf[adrs+i] = ' ';
abuf[adrs+i] = col;
}#if 0int TextRegionClass::get_number_of_lines(){ return (text_mode->cx_ofs + text_mode->my);
#if 0
int TextRegionClass::get_number_of_lines()
return (text_mode->cx_ofs + text_mode->my);
#endif