feat: all-white mouse cursor across desktop/login/firstInit

This commit is contained in:
Linehu
2026-10-04 21:43:43 +08:00
parent 87d532df01
commit 87f8ce11da
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ void cursor_draw(int mx, int my) {
for (int r = 0; r < CURSOR_SIZE; r++) {
for (int c = 0; c < CURSOR_SIZE; c++) {
if (cursor_shape[r][c]) {
du_pixel(&g_fb, mx + c, my + r, KS_ACCENT);
du_pixel(&g_fb, mx + c, my + r, 0xFFFFFFFFu); /* 白色指针 */
}
}
}
+2 -2
View File
@@ -499,8 +499,8 @@ static void cursor_draw(u32 *fb, i64 mx, i64 my) {
cursor_bg_valid = 1;
cursor_cur_x = mx;
cursor_cur_y = my;
/* draw cursor shape */
u32 white = 0xFFFFFFFF, dark = 0xFF304760;
/* draw cursor shape(全白指针,深色描边改白) */
u32 white = 0xFFFFFFFF, dark = 0xFFFFFFFF;
for (i64 y = 0; y < CUR_H; y++) {
i64 py = my + y;
if (py < 0 || (u64)py >= fb_h) continue;
+1 -1
View File
@@ -349,7 +349,7 @@ static void cursor_restore_bg(u32 *fb) {
}
static void cursor_draw(u32 *fb, int mx, int my) {
u32 fg = ACCENT;
u32 fg = 0xFFFFFFFF; /* 白色指针 */
for (int r = 0; r < CURSZ; r++) {
for (int c = 0; c < CURSZ; c++) {
if (!cursor_shape[r][c]) continue;