• R/O
  • SSH
  • HTTPS

haribote: Commit


Commit MetaInfo

Revision185 (tree)
Time2007-08-04 15:23:05
Authorbayside

Log Message

mouse cursor changed

Change Summary

Incremental Difference

--- haribote/trunk/bayos_exp/bootpack.cpp (revision 184)
+++ haribote/trunk/bayos_exp/bootpack.cpp (revision 185)
@@ -21,7 +21,7 @@
2121 unsigned int memtotal;
2222 Mouse mouse;
2323 MemoryManager *memory_manager = (MemoryManager *) MEMMAN_ADDR;
24- unsigned short *buf_back, buf_mouse[256];
24+ unsigned short *buf_back, buf_mouse[11 * 17];
2525 Sheet *sheet_back, *sheet_mouse;
2626 Task *task_a, *task;
2727 static char keytable0[0x80] = {
@@ -93,7 +93,7 @@
9393
9494 /* sheet_mouse */
9595 sheet_mouse = SheetManager::allocate(sheet_manager);
96- Sheet::set_buffer(sheet_mouse, buf_mouse, 16, 16, 99);
96+ Sheet::set_buffer(sheet_mouse, buf_mouse, 11, 17, 99);
9797 MouseCursor::init(buf_mouse, 99);
9898 mx = (sysinfo->scrnx - 16) / 2; /* 画面中央になるように座標計算 */
9999 my = (sysinfo->scrny - 28 - 16) / 2;
--- haribote/trunk/bayos_exp/mouse.cpp (revision 184)
+++ haribote/trunk/bayos_exp/mouse.cpp (revision 185)
@@ -20,38 +20,39 @@
2020 extern unsigned short table_8_565[256];
2121
2222 void MouseCursor::init(unsigned short *mouse, char bc)
23-/* マウスカーソルを準備(16x16) */
23+/* マウスカーソルを準備(11x17) */
2424 {
25- static char* cursor[16]/*[16]*/ = {
26- "**************..",
27- "*OOOOOOOOOOO*...",
28- "*OOOOOOOOOO*....",
29- "*OOOOOOOOO*.....",
30- "*OOOOOOOO*......",
31- "*OOOOOOO*.......",
32- "*OOOOOOO*.......",
33- "*OOOOOOOO*......",
34- "*OOOO**OOO*.....",
35- "*OOO*..*OOO*....",
36- "*OO*....*OOO*...",
37- "*O*......*OOO*..",
38- "**........*OOO*.",
39- "*..........*OOO*",
40- "............*OO*",
41- ".............***"
25+ static char* cursor[17]/*[11]*/ = {
26+ "*..........",
27+ "**.........",
28+ "*O*........",
29+ "*OO*.......",
30+ "*OOO*......",
31+ "*OOOO*.....",
32+ "*OOOOO*....",
33+ "*OOOOOO*...",
34+ "*OOOOOOO*..",
35+ "*OOOOOOOO*.",
36+ "*OOOOO*****",
37+ "*OO*OO*....",
38+ "*O*.*OO*...",
39+ "**..*OO*...",
40+ "*....*OO*..",
41+ ".....*OO*..",
42+ "......**..."
4243 };
4344 int x, y;
4445
45- for (y = 0; y < 16; y++) {
46- for (x = 0; x < 16; x++) {
46+ for (y = 0; y < 17; y++) {
47+ for (x = 0; x < 11; x++) {
4748 if (cursor[y][x] == '*') {
48- mouse[y * 16 + x] = table_8_565[COL8_000000];
49+ mouse[y * 11 + x] = table_8_565[COL8_000000];
4950 }
5051 if (cursor[y][x] == 'O') {
51- mouse[y * 16 + x] = table_8_565[COL8_FFFFFF];
52+ mouse[y * 11 + x] = table_8_565[COL8_FFFFFF];
5253 }
5354 if (cursor[y][x] == '.') {
54- mouse[y * 16 + x] = table_8_565[bc & 0xff];
55+ mouse[y * 11 + x] = table_8_565[bc & 0xff];
5556 }
5657 }
5758 }
Show on old repository browser