diff options
author | Matt Wilson <msw@redhat.com> | 2001-04-02 23:24:56 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-04-02 23:24:56 +0000 |
commit | a0967bcbd273c26806de383afffe4c839a831a16 (patch) | |
tree | 017dfbfc42bbfc51c6fc02d754dd43861140f12d /minislang/slsmg.c | |
parent | 15ba819b5ec1e1f80adb4b720627a5a06f5f4afb (diff) | |
download | anaconda-a0967bcbd273c26806de383afffe4c839a831a16.tar.gz anaconda-a0967bcbd273c26806de383afffe4c839a831a16.tar.xz anaconda-a0967bcbd273c26806de383afffe4c839a831a16.zip |
update kanji font to include all chars, add support for SLsmg_touch_screen in minislang
Diffstat (limited to 'minislang/slsmg.c')
-rw-r--r-- | minislang/slsmg.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/minislang/slsmg.c b/minislang/slsmg.c index e90b8032e..fbd45d8d3 100644 --- a/minislang/slsmg.c +++ b/minislang/slsmg.c @@ -28,6 +28,7 @@ Screen_Type; #define TOUCHED 0x1 #define TRASHED 0x2 +static int Screen_Trashed = 0; #if !defined(IBMPC_SYSTEM) || defined(__DJGPP__) || defined(__os2__) # define MAX_SCREEN_SIZE 256 @@ -764,10 +765,18 @@ static int Smg_Inited; void SLsmg_refresh (void) { int i; - int trashed; +#ifndef IBMPC_SYSTEM + int trashed = 0; +#endif if (Smg_Inited == 0) return; - trashed = 0; + + if (Screen_Trashed) + { + Cls_Flag = 1; + for ( i = 0; i < Screen_Rows; i++) + SL_Screen[i].flags |= TRASHED; + } #ifndef IBMPC_SYSTEM for (i = 0; i < Screen_Rows; i++) @@ -824,6 +833,7 @@ void SLsmg_refresh (void) if (point_visible (1)) (*tt_goto_rc) (This_Row - Start_Row, This_Col - Start_Col); (*tt_flush_output) (); Cls_Flag = 0; + Screen_Trashed = 0; } static int compute_clip (int row, int n, int box_start, int box_end, @@ -859,6 +869,11 @@ void SLsmg_touch_lines (int row, unsigned int n) } } +void SLsmg_touch_screen (void) +{ + Screen_Trashed = 1; +} + #ifndef IBMPC_SYSTEM static char Fake_Alt_Char_Pairs [] = "a:j+k+l+m+q-t+u+v+w+x|"; @@ -994,6 +1009,7 @@ int SLsmg_init_smg (void) SL_Screen[i].new_hash = SL_Screen[i].old_hash = Blank_Hash; #endif } + Screen_Trashed = 1; Smg_Inited = 1; UNBLOCK_SIGNALS return 0; |