mirror of
https://git.shylie.info/shylie/terml.git
synced 2025-10-21 01:40:20 +00:00
Remove new_width and new_height parameters from resize callback. Use terml_get_width() and terml_get_height() instead.
This commit is contained in:
@@ -214,8 +214,8 @@ void terml::setup_buffer()
|
||||
|
||||
stdin_buffer[STDIN_BUFFER_SIZE] = '\0';
|
||||
|
||||
unsigned int new_width = width;
|
||||
unsigned int new_height = height;
|
||||
const unsigned int new_width = width;
|
||||
const unsigned int new_height = height;
|
||||
const int scanned = sscanf(stdin_buffer, CURSOR_POSITION_FORMAT(), &new_height, &new_width);
|
||||
if (scanned != 2)
|
||||
{
|
||||
@@ -244,7 +244,7 @@ void terml::setup_buffer()
|
||||
|
||||
if (resize)
|
||||
{
|
||||
resize(old_width, old_height, new_width, new_height);
|
||||
resize(old_width, old_height);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user