mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-23 03:52:12 -04:00
remove some useless fields from textline widgets (#1174)
This commit is contained in:
parent
59adb20e17
commit
837212ebde
@ -478,7 +478,6 @@ void HUlib_initMText(hu_mtext_t *m, int x, int y, patch_t ***font,
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
m->nl = 0;
|
m->nl = 0;
|
||||||
m->nr = 0;
|
|
||||||
m->cl = -1; //jff 4/28/98 prepare for pre-increment
|
m->cl = -1; //jff 4/28/98 prepare for pre-increment
|
||||||
m->x = x;
|
m->x = x;
|
||||||
m->on = on;
|
m->on = on;
|
||||||
@ -605,7 +604,6 @@ void HUlib_eraseMText(hu_mtext_t *m)
|
|||||||
void HUlib_initIText(hu_itext_t *it, int x, int y, patch_t ***font,
|
void HUlib_initIText(hu_itext_t *it, int x, int y, patch_t ***font,
|
||||||
char *cr, boolean *on)
|
char *cr, boolean *on)
|
||||||
{
|
{
|
||||||
it->lm = 0; // default left margin is start of text
|
|
||||||
it->on = on;
|
it->on = on;
|
||||||
it->laston = true;
|
it->laston = true;
|
||||||
HUlib_initTextLine(&it->l, x, y, font, cr, NULL);
|
HUlib_initTextLine(&it->l, x, y, font, cr, NULL);
|
||||||
@ -624,7 +622,7 @@ void HUlib_initIText(hu_itext_t *it, int x, int y, patch_t ***font,
|
|||||||
|
|
||||||
static void HUlib_delCharFromIText(hu_itext_t *it)
|
static void HUlib_delCharFromIText(hu_itext_t *it)
|
||||||
{
|
{
|
||||||
if (it->l.len != it->lm)
|
if (it->l.len > 0)
|
||||||
HUlib_delCharFromTextLine(&it->l);
|
HUlib_delCharFromTextLine(&it->l);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -640,7 +638,6 @@ static void HUlib_delCharFromIText(hu_itext_t *it)
|
|||||||
|
|
||||||
void HUlib_resetIText(hu_itext_t *it)
|
void HUlib_resetIText(hu_itext_t *it)
|
||||||
{
|
{
|
||||||
it->lm = 0;
|
|
||||||
HUlib_clearTextLine(&it->l);
|
HUlib_clearTextLine(&it->l);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -109,7 +109,6 @@ typedef struct
|
|||||||
{
|
{
|
||||||
hu_textline_t l[HU_MAXMESSAGES]; // text lines to draw
|
hu_textline_t l[HU_MAXMESSAGES]; // text lines to draw
|
||||||
int nl; // height in lines
|
int nl; // height in lines
|
||||||
int nr; // total height in rows
|
|
||||||
int cl; // current line number
|
int cl; // current line number
|
||||||
int x; // current line x
|
int x; // current line x
|
||||||
|
|
||||||
@ -127,9 +126,6 @@ typedef struct
|
|||||||
{
|
{
|
||||||
hu_textline_t l; // text line to input on
|
hu_textline_t l; // text line to input on
|
||||||
|
|
||||||
// left margin past which I am not to delete characters
|
|
||||||
int lm;
|
|
||||||
|
|
||||||
// pointer to boolean stating whether to update window
|
// pointer to boolean stating whether to update window
|
||||||
boolean* on;
|
boolean* on;
|
||||||
boolean laston; // last value of *->on;
|
boolean laston; // last value of *->on;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user