mirror of
https://git.shylie.info/shylie/terml.git
synced 2024-11-21 23:50:06 +00:00
Simplify terml_get function
This commit is contained in:
parent
2210bf7d69
commit
35a7d4629a
@ -27,7 +27,7 @@ int terml_deinit();
|
|||||||
unsigned int terml_get_width();
|
unsigned int terml_get_width();
|
||||||
unsigned int terml_get_height();
|
unsigned int terml_get_height();
|
||||||
|
|
||||||
int terml_get(unsigned int x, unsigned int y, const tcell** cell);
|
int terml_get(unsigned int x, unsigned int y, tcell* cell);
|
||||||
int terml_set(unsigned int x, unsigned int y, tcell cell);
|
int terml_set(unsigned int x, unsigned int y, tcell cell);
|
||||||
void terml_flush();
|
void terml_flush();
|
||||||
|
|
||||||
|
@ -319,7 +319,7 @@ extern "C"
|
|||||||
return TERML_G->get_height();
|
return TERML_G->get_height();
|
||||||
}
|
}
|
||||||
|
|
||||||
int terml_get(unsigned int x, unsigned int y, const tcell** cell)
|
int terml_get(unsigned int x, unsigned int y, tcell* cell)
|
||||||
{
|
{
|
||||||
if (x >= TERML_G->get_width() || y >= TERML_G->get_height())
|
if (x >= TERML_G->get_width() || y >= TERML_G->get_height())
|
||||||
{
|
{
|
||||||
@ -333,7 +333,7 @@ extern "C"
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
*cell = &TERML_G->get(x, y);
|
*cell = TERML_G->get(x, y);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user