Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/wsfont Umm, revert unintended changes.
details: https://anonhg.NetBSD.org/src/rev/c0cf4526edc7
branches: trunk
changeset: 756543:c0cf4526edc7
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Thu Jul 22 12:52:59 2010 +0000
description:
Umm, revert unintended changes.
diffstat:
sys/dev/wsfont/wsfont.c | 14 ++++----------
1 files changed, 4 insertions(+), 10 deletions(-)
diffs (43 lines):
diff -r 18254dcb2665 -r c0cf4526edc7 sys/dev/wsfont/wsfont.c
--- a/sys/dev/wsfont/wsfont.c Thu Jul 22 12:48:00 2010 +0000
+++ b/sys/dev/wsfont/wsfont.c Thu Jul 22 12:52:59 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsfont.c,v 1.48 2010/07/22 12:48:00 tsutsui Exp $ */
+/* $NetBSD: wsfont.c,v 1.49 2010/07/22 12:52:59 tsutsui Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001, 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsfont.c,v 1.48 2010/07/22 12:48:00 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsfont.c,v 1.49 2010/07/22 12:52:59 tsutsui Exp $");
#include "opt_wsfont.h"
@@ -379,9 +379,9 @@
struct wsdisplay_font *
wsfont_rotate_ccw_internal(struct wsdisplay_font *font)
{
- int b, n, r, namelen, newstride;
+ int b, n, r, newstride;
struct wsdisplay_font *newfont;
- char *newname, *newbits;
+ char *newbits;
/* Duplicate the existing font... */
newfont = malloc(sizeof(*font), M_DEVBUF, M_WAITOK);
@@ -390,12 +390,6 @@
*newfont = *font;
- namelen = strlen(font->name) + 4;
- newname = malloc(namelen, M_DEVBUF, M_WAITOK);
- strlcpy(newname, font->name, namelen);
- strlcat(newname, "_ccw", namelen);
- newfont->name = newname;
-
/* Allocate a buffer big enough for the rotated font. */
newstride = (font->fontheight + 7) / 8;
newbits = malloc(newstride * font->fontwidth * font->numchars,
Home |
Main Index |
Thread Index |
Old Index