vt_core.c (273036) | vt_core.c (273037) |
---|---|
1/*- 2 * Copyright (c) 2009, 2013 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Ed Schouten under sponsorship from the 6 * FreeBSD Foundation. 7 * 8 * Portions of this software were developed by Oleksandr Rybalko --- 17 unchanged lines hidden (view full) --- 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2009, 2013 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Ed Schouten under sponsorship from the 6 * FreeBSD Foundation. 7 * 8 * Portions of this software were developed by Oleksandr Rybalko --- 17 unchanged lines hidden (view full) --- 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: stable/10/sys/dev/vt/vt_core.c 273036 2014-10-13 13:50:51Z dumbbell $"); | 34__FBSDID("$FreeBSD: stable/10/sys/dev/vt/vt_core.c 273037 2014-10-13 14:40:00Z dumbbell $"); |
35 36#include "opt_compat.h" 37 38#include <sys/param.h> 39#include <sys/consio.h> 40#include <sys/eventhandler.h> 41#include <sys/fbio.h> 42#include <sys/kbio.h> --- 1221 unchanged lines hidden (view full) --- 1264 vt_compute_drawable_area(vw); 1265 } 1266 1267 /* 1268 * The original screen size was faked (_VTDEFW x _VTDEFH). Now 1269 * that we have the real viewable size, fix it in the static 1270 * buffer. 1271 */ | 35 36#include "opt_compat.h" 37 38#include <sys/param.h> 39#include <sys/consio.h> 40#include <sys/eventhandler.h> 41#include <sys/fbio.h> 42#include <sys/kbio.h> --- 1221 unchanged lines hidden (view full) --- 1264 vt_compute_drawable_area(vw); 1265 } 1266 1267 /* 1268 * The original screen size was faked (_VTDEFW x _VTDEFH). Now 1269 * that we have the real viewable size, fix it in the static 1270 * buffer. 1271 */ |
1272 vt_termsize(vd, vw->vw_font, &vw->vw_buf.vb_scr_size); | 1272 if (vd->vd_width != 0 && vd->vd_height != 0) 1273 vt_termsize(vd, vw->vw_font, &vw->vw_buf.vb_scr_size); |
1273 1274 vtbuf_init_early(&vw->vw_buf); 1275 vt_winsize(vd, vw->vw_font, &wsz); 1276 c = (boothowto & RB_MUTE) == 0 ? TERMINAL_KERN_ATTR : 1277 TERMINAL_NORM_ATTR; 1278 attr.ta_format = TCHAR_FORMAT(c); 1279 attr.ta_fgcolor = TCHAR_FGCOLOR(c); 1280 attr.ta_bgcolor = TCHAR_BGCOLOR(c); --- 1370 unchanged lines hidden --- | 1274 1275 vtbuf_init_early(&vw->vw_buf); 1276 vt_winsize(vd, vw->vw_font, &wsz); 1277 c = (boothowto & RB_MUTE) == 0 ? TERMINAL_KERN_ATTR : 1278 TERMINAL_NORM_ATTR; 1279 attr.ta_format = TCHAR_FORMAT(c); 1280 attr.ta_fgcolor = TCHAR_FGCOLOR(c); 1281 attr.ta_bgcolor = TCHAR_BGCOLOR(c); --- 1370 unchanged lines hidden --- |