mockui.c: fix Open_window() / Close_window()
Windows_open needs to have a consistent value
This commit is contained in:
parent
f2f6b8d135
commit
317a27aa40
@ -24,6 +24,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include "../struct.h"
|
#include "../struct.h"
|
||||||
|
#include "../global.h"
|
||||||
|
|
||||||
void Warning_message(const char * message)
|
void Warning_message(const char * message)
|
||||||
{
|
{
|
||||||
@ -57,11 +58,14 @@ void Window_help(int section, const char * sub_section)
|
|||||||
|
|
||||||
void Open_window(word width, word height, const char * title)
|
void Open_window(word width, word height, const char * title)
|
||||||
{
|
{
|
||||||
printf("Open_window() %hux%hu : %s\n", width, height, title);
|
Windows_open++;
|
||||||
|
printf("Open_window() #%hhu %hux%hu : %s\n", Windows_open, width, height, title);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Close_window()
|
void Close_window()
|
||||||
{
|
{
|
||||||
|
printf("Close_window() #%hhu\n", Windows_open);
|
||||||
|
Windows_open--;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Print_in_window(short x,short y,const char * str,byte text_color,byte background_color)
|
void Print_in_window(short x,short y,const char * str,byte text_color,byte background_color)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user