Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NP49R-0007gm-OK for mharc-grub-devel@gnu.org; Sun, 27 Dec 2009 20:12:01 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NP49P-0007gB-UA for grub-devel@gnu.org; Sun, 27 Dec 2009 20:12:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NP49L-0007bs-Hk for grub-devel@gnu.org; Sun, 27 Dec 2009 20:11:59 -0500 Received: from [199.232.76.173] (port=58760 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NP49L-0007bj-Ao for grub-devel@gnu.org; Sun, 27 Dec 2009 20:11:55 -0500 Received: from 197.red-80-32-81.staticip.rima-tde.net ([80.32.81.197]:59990 helo=mail.pina.cat) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NP49L-0004Au-Dq for grub-devel@gnu.org; Sun, 27 Dec 2009 20:11:55 -0500 Received: from pinux (unknown [192.168.0.78]) by mail.pina.cat (Postfix) with ESMTPA id 6DF8C2894B244 for ; Mon, 28 Dec 2009 02:11:53 +0100 (CET) Received: by pinux (Postfix, from userid 1000) id 46C9CDB97; Mon, 28 Dec 2009 02:11:52 +0100 (CET) Date: Mon, 28 Dec 2009 02:11:52 +0100 From: Carles Pina i Estany To: grub-devel@gnu.org Message-ID: <20091228011152.GA15578@pina.cat> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="GvXjxJ+pjyke8COw" Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: [PATCH] macrofying X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Dec 2009 01:12:00 -0000 --GvXjxJ+pjyke8COw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, Attached a patch that macrofies some values. I don't see any reason that was not macrofied. -- Carles Pina i Estany http://pinux.info --GvXjxJ+pjyke8COw Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="macrofy.patch" === modified file 'ChangeLog' --- ChangeLog 2009-12-27 21:32:52 +0000 +++ ChangeLog 2009-12-28 00:10:40 +0000 @@ -1,3 +1,9 @@ +2009-12-28 Carles Pina i Estany + + * loader/i386/efi/linux.c (grub_cmd_linux): Use GRUB_TERM_WIDTH and + GRUB_TERM_HEIGHT macros. + * loader/i386/ieee1275/linux.c (grub_linux_boot): Likewise. + 2009-12-27 Vladimir Serbinenko * normal/menu_text.c (grub_print_message_indented): Prevent === modified file 'loader/i386/efi/linux.c' --- loader/i386/efi/linux.c 2009-12-26 23:36:59 +0000 +++ loader/i386/efi/linux.c 2009-12-28 00:09:05 +0000 @@ -697,9 +697,9 @@ grub_cmd_linux (grub_command_t cmd __att params->video_cursor_y = grub_getxy () & 0xff; params->video_page = 0; /* ??? */ params->video_mode = grub_efi_system_table->con_out->mode->mode; - params->video_width = (grub_getwh () >> 8); + params->video_width = GRUB_TERM_WIDTH; params->video_ega_bx = 0; - params->video_height = (grub_getwh () & 0xff); + params->video_height = GRUB_TERM_HEIGHT; params->have_vga = 0; params->font_size = 16; /* XXX */ === modified file 'loader/i386/ieee1275/linux.c' --- loader/i386/ieee1275/linux.c 2009-12-26 23:36:59 +0000 +++ loader/i386/ieee1275/linux.c 2009-12-28 00:08:56 +0000 @@ -109,8 +109,8 @@ grub_linux_boot (void) params->cl_magic = GRUB_LINUX_CL_MAGIC; params->cl_offset = GRUB_OFW_LINUX_CL_OFFSET; - params->video_width = (grub_getwh () >> 8); - params->video_height = (grub_getwh () & 0xff); + params->video_width = GRUB_TERM_WIDTH; + params->video_height = GRUB_TERM_HEIGHT; params->font_size = 16; params->ofw_signature = GRUB_LINUX_OFW_SIGNATURE; --GvXjxJ+pjyke8COw--