mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-15 01:13:36 +02:00
shellwindow: fix position of button; use default color
* add comment to termwindow class; correct positioning of button isn't possible atm
Origin commit data
------------------
Commit: 3b1ee18c19
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-01-20 (Sat, 20 Jan 2018)
Origin message was:
------------------
- shellwindow: fix position of button; use default color
* add comment to termwindow class; correct positioning of button isn't possible atm
This commit is contained in:
@@ -97,6 +97,9 @@ void CTermWindow::showResult()
|
||||
if (show_button) {
|
||||
int b_width = 150;
|
||||
int b_height = 35;
|
||||
/*
|
||||
we need the dimensions of yaft window to place the button correctly
|
||||
*/
|
||||
int xpos = frameBuffer->getScreenWidth() - b_width;
|
||||
int ypos = frameBuffer->getScreenHeight() - b_height;
|
||||
CComponentsButton btn(xpos, ypos, b_width, b_height, LOCALE_MESSAGEBOX_BACK, NEUTRINO_ICON_BUTTON_OKAY, NULL, true, true);
|
||||
|
Reference in New Issue
Block a user