Memo to myself – how to shift a line

Saturday, March 19th, 1994
//(c)1994 Rashumon Multi lingual word processor by Michael Haephrati

if(line->SpecialData & SHIFTLINE && line->CursLen>Header->Width)
{
	int offset=0,i=0;
	while(line->CursLen-offset>Header->Width)
	{
		offset+=font_width(ln,ln->Curs-i);
		i++;
	}
}
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: