Mercurial > 510Connectbot
comparison src/org/tn5250j/framework/tn5250/Screen5250.java @ 140:4fe73e73d4d7
fill vt320 buffer from tn5250 buffer when font size shrinks
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 20 Jun 2014 19:08:47 -0700 |
parents | c2fa8ae31cfa |
children | 13cea57ac61e |
comparison
equal
deleted
inserted
replaced
139:c2fa8ae31cfa | 140:4fe73e73d4d7 |
---|---|
36 import org.tn5250j.TN5250jConstants; | 36 import org.tn5250j.TN5250jConstants; |
37 | 37 |
38 import android.util.Log; | 38 import android.util.Log; |
39 import de.mud.terminal.VDUBuffer; | 39 import de.mud.terminal.VDUBuffer; |
40 import de.mud.terminal.vt320; | 40 import de.mud.terminal.vt320; |
41 | 41 import com.five_ten_sg.connectbot.service.FontSizeChangedListener; |
42 | 42 |
43 public class Screen5250 { | 43 |
44 public class Screen5250 implements FontSizeChangedListener { | |
44 private static final String TAG = "Screen5250"; | 45 private static final String TAG = "Screen5250"; |
45 private ScreenFields screenFields; | 46 private ScreenFields screenFields; |
46 private int lastAttr; | 47 private int lastAttr; |
47 private int lastPos; | 48 private int lastPos; |
48 private int lenScreen; | 49 private int lenScreen; |
3776 lastAttr = 32; | 3777 lastAttr = 32; |
3777 dirtyScreen.setBounds(0, lenScreen - 1, 0, 0); | 3778 dirtyScreen.setBounds(0, lenScreen - 1, 0, 0); |
3778 updateDirty(); | 3779 updateDirty(); |
3779 } | 3780 } |
3780 | 3781 |
3782 public void onFontSizeChanged(float size) { | |
3783 fireScreenChanged(0, 0, numRows-1, numCols-1); | |
3784 } | |
3785 | |
3781 /** | 3786 /** |
3782 * repaint part of the screen | 3787 * repaint part of the screen |
3783 * | 3788 * |
3784 */ | 3789 */ |
3785 private void fireScreenChanged(int startRow, int startCol, int endRow, int endCol) { | 3790 private void fireScreenChanged(int startRow, int startCol, int endRow, int endCol) { |