mirror of
https://github.com/ipxe/ipxe
synced 2026-04-16 03:00:10 +03:00
There seems to be no reason why pos_x is static...
This commit is contained in:
@@ -41,8 +41,6 @@ struct _softlabelkeys {
|
|||||||
|
|
||||||
struct _softlabelkeys *slks;
|
struct _softlabelkeys *slks;
|
||||||
|
|
||||||
static unsigned short pos_x;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
I either need to break the primitives here, or write a collection of
|
I either need to break the primitives here, or write a collection of
|
||||||
functions specifically for SLKs that directly access the screen
|
functions specifically for SLKs that directly access the screen
|
||||||
@@ -189,6 +187,8 @@ int slk_attr_set ( const attr_t attrs, short colour_pair_number,
|
|||||||
*/
|
*/
|
||||||
int slk_clear ( void ) {
|
int slk_clear ( void ) {
|
||||||
chtype space_ch;
|
chtype space_ch;
|
||||||
|
unsigned int pos_x;
|
||||||
|
|
||||||
if ( slks == NULL )
|
if ( slks == NULL )
|
||||||
return ERR;
|
return ERR;
|
||||||
|
|
||||||
@@ -287,7 +287,7 @@ char* slk_label ( int labnum ) {
|
|||||||
* @ret rc return status code
|
* @ret rc return status code
|
||||||
*/
|
*/
|
||||||
int slk_restore ( void ) {
|
int slk_restore ( void ) {
|
||||||
unsigned int i, j,
|
unsigned int i, j, pos_x,
|
||||||
*next_space, *last_space;
|
*next_space, *last_space;
|
||||||
chtype space_ch;
|
chtype space_ch;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user