-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathgrub-0.97-efigraph-use-blt.patch
62 lines (59 loc) · 1.74 KB
/
grub-0.97-efigraph-use-blt.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
diff -up grub-0.97/efi/efigraph.c.useblt grub-0.97/efi/efigraph.c
--- grub-0.97/efi/efigraph.c.useblt 2009-03-11 11:02:24.000000000 -0400
+++ grub-0.97/efi/efigraph.c 2009-03-11 11:02:30.000000000 -0400
@@ -305,6 +305,24 @@ static struct bltbuf *alloc_bltbuf(grub_
return buf;
}
+
+#if 1
+static void
+blt_pos_to_screen_pos(struct eg *eg, struct bltbuf *bltbuf,
+ position_t *bltpos, position_t *bltsz, position_t *pos)
+{
+ position_t phys;
+
+ position_to_phys(eg, pos, &phys);
+
+ Call_Service_10(eg->output_intf->blt, eg->output_intf, (void *)bltbuf->pixbuf,
+ GRUB_EFI_BLT_BUFFER_TO_VIDEO,
+ bltpos->x, bltpos->y,
+ phys.x, phys.y,
+ bltsz->x, bltsz->y,
+ 0);
+}
+#else
static void
blt_pos_to_screen_pos(struct eg *eg, struct bltbuf *bltbuf,
position_t *bltpos, position_t *bltsz, position_t *pos)
@@ -392,6 +410,7 @@ blt_pos_to_screen_pos(struct eg *eg, str
}
}
}
+#endif
static void
blt_to_screen(struct eg *eg, struct bltbuf *bltbuf)
@@ -417,25 +436,6 @@ blt_to_screen(struct eg *eg, struct bltb
#endif
}
-
-#if 0
-static void
-blt_pos_to_screen_pos(struct eg *eg, struct bltbuf *bltbuf,
- position_t *bltpos, position_t *bltsz, position_t *pos)
-{
- position_t phys;
-
- position_to_phys(eg, pos, &phys);
-
- Call_Service_10(eg->output_intf->blt, eg->output_intf, bltbuf->pixbuf,
- GRUB_EFI_BLT_BUFFER_TO_VIDEO,
- bltpos->x, bltpos->y,
- phys.x, phys.y,
- bltsz->x, bltsz->y,
- 0);
-}
-#endif
-
static void
blt_to_screen_pos(struct eg *eg, struct bltbuf *bltbuf, position_t *pos)
{