/[grub]/grub2/term/ieee1275/ofconsole.c
ViewVC logotype

Diff of /grub2/term/ieee1275/ofconsole.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by hollisb, Tue Aug 9 03:15:35 2005 UTC revision 1.4 by hollisb, Tue Aug 9 03:25:40 2005 UTC
# Line 21  Line 21 
21  #include <grub/term.h>  #include <grub/term.h>
22  #include <grub/types.h>  #include <grub/types.h>
23  #include <grub/misc.h>  #include <grub/misc.h>
24    #include <grub/mm.h>
25  #include <grub/machine/console.h>  #include <grub/machine/console.h>
26  #include <grub/ieee1275/ieee1275.h>  #include <grub/ieee1275/ieee1275.h>
27    
# Line 219  grub_ofconsole_getwh (void) Line 220  grub_ofconsole_getwh (void)
220    if (!w || !h)    if (!w || !h)
221      {      {
222        if (! grub_ieee1275_finddevice ("/options", &options)        if (! grub_ieee1275_finddevice ("/options", &options)
223            && options != -1)            && options != (grub_ieee1275_ihandle_t) -1)
224          {          {
225            if (! grub_ieee1275_get_property_length (options, "screen-#columns",            if (! grub_ieee1275_get_property_length (options, "screen-#columns",
226                                                     &lval) && lval != -1)                                                     &lval) && lval != -1)
# Line 229  grub_ofconsole_getwh (void) Line 230  grub_ofconsole_getwh (void)
230                  {                  {
231                    if (! grub_ieee1275_get_property (options, "screen-#columns",                    if (! grub_ieee1275_get_property (options, "screen-#columns",
232                                                      val, lval, 0))                                                      val, lval, 0))
233                      w = (grub_uint8_t) grub_strtoul (val, val + lval, 10);                      w = (grub_uint8_t) grub_strtoul (val, 0, 10);
234    
235                    grub_free (val);                    grub_free (val);
236                  }                  }
# Line 242  grub_ofconsole_getwh (void) Line 243  grub_ofconsole_getwh (void)
243                  {                  {
244                    if (! grub_ieee1275_get_property (options, "screen-#rows",                    if (! grub_ieee1275_get_property (options, "screen-#rows",
245                                                      val, lval, 0))                                                      val, lval, 0))
246                      h = (grub_uint8_t) grub_strtoul (val, val + lval, 10);                      h = (grub_uint8_t) grub_strtoul (val, 0, 10);
247    
248                    grub_free (val);                    grub_free (val);
249                  }                  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26