mirror of
https://github.com/pevans/erc-c.git
synced 2025-08-08 05:25:01 +00:00
Add documentation for option functions
This commit is contained in:
14
src/option.c
14
src/option.c
@@ -223,6 +223,14 @@ option_print_help()
|
|||||||
(only 700x480 and 875x600 are supported)\n");
|
(only 700x480 and 875x600 are supported)\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Set the size of our window in visible width and height. The size
|
||||||
|
* string is expected to be in the form of WIDTHxHEIGHT, where WIDTH
|
||||||
|
* and HEIGHT are integers representing the window width and height
|
||||||
|
* respectively. Arbitrary values for width and height are not
|
||||||
|
* necessarily allowed; generally, we can only support values which
|
||||||
|
* respect the aspect ratio used by the machine we are emulating.
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
option_set_size(const char *size)
|
option_set_size(const char *size)
|
||||||
{
|
{
|
||||||
@@ -238,12 +246,18 @@ option_set_size(const char *size)
|
|||||||
return ERR_BADOPT;
|
return ERR_BADOPT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return the window width we've been configured to use.
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
option_get_width()
|
option_get_width()
|
||||||
{
|
{
|
||||||
return width;
|
return width;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return the window height we want.
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
option_get_height()
|
option_get_height()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user