Changeset 5162f6e in mainline
- Timestamp:
- 2025-01-20T17:43:09Z (34 hours ago)
- Branches:
- master
- Children:
- eff458d
- Parents:
- 2e08f2b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/shutdown-dlg/shutdown-dlg.c
r2e08f2b6 r5162f6e 296 296 params.rect.p0.x = 0; 297 297 params.rect.p0.y = 0; 298 params.rect.p1.x = 24;298 params.rect.p1.x = 64; 299 299 params.rect.p1.y = 5; 300 300 } else { … … 434 434 params.placement = ui_wnd_place_full_screen; 435 435 params.flags |= ui_wndf_topmost | ui_wndf_nofocus; 436 /* params.rect.p0.x = 0; 437 params.rect.p0.y = 0; 438 params.rect.p1.x = 1; 439 params.rect.p1.y = 1;*/ 440 441 rc = ui_window_create(sddlg.ui, ¶ms, &sddlg.bgwindow); 442 if (rc != EOK) { 443 printf("Error creating window.\n"); 444 goto error; 445 } 446 447 ui_window_set_cb(sddlg.bgwindow, &bg_window_cb, (void *)&sddlg); 448 436 449 if (ui_is_textmode(sddlg.ui)) { 437 params.rect.p0.x = 0; 438 params.rect.p0.y = 0; 439 params.rect.p1.x = 24; 440 params.rect.p1.y = 5; 450 rc = gfx_color_new_ega(0x17, &sddlg.bg_color); 451 if (rc != EOK) { 452 printf("Error allocating color.\n"); 453 goto error; 454 } 441 455 } else { 442 params.rect.p0.x = 0; 443 params.rect.p0.y = 0; 444 params.rect.p1.x = 300; 445 params.rect.p1.y = 60; 446 } 447 448 rc = ui_window_create(sddlg.ui, ¶ms, &sddlg.bgwindow); 449 if (rc != EOK) { 450 printf("Error creating window.\n"); 451 goto error; 452 } 453 454 ui_window_set_cb(sddlg.bgwindow, &bg_window_cb, (void *)&sddlg); 455 456 rc = gfx_color_new_rgb_i16(0x8000, 0xc800, 0xffff, &sddlg.bg_color); 457 if (rc != EOK) { 458 printf("Error allocating color.\n"); 459 goto error; 456 rc = gfx_color_new_rgb_i16(0x8000, 0xc800, 0xffff, &sddlg.bg_color); 457 if (rc != EOK) { 458 printf("Error allocating color.\n"); 459 goto error; 460 } 460 461 } 461 462
Note:
See TracChangeset
for help on using the changeset viewer.