dialogue: count dimensions correctly
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#ifndef DIALOGUE_H
|
||||
#define DIALOGUE_H
|
||||
|
||||
#include <ncurses.h>
|
||||
#include "../widget.h"
|
||||
#include "button.h"
|
||||
#include "group.h"
|
||||
#include <ncurses.h>
|
||||
|
||||
typedef struct {
|
||||
WINDOW *win;
|
||||
@@ -13,8 +13,8 @@ typedef struct {
|
||||
char text[DIALOGUE_TEXT];
|
||||
} dialogue_t;
|
||||
|
||||
dialogue_t *init_dialogue(const char title[], const char text[], const uint32_t w, const uint32_t h);
|
||||
int32_t draw_dialogue(void *app, dialogue_t *d, const uint32_t cur_x, const uint32_t cur_y);
|
||||
dialogue_t *init_dialogue(const char title[], const char text[]);
|
||||
int32_t draw_dialogue(void *app, dialogue_t *d);
|
||||
void destroy_active_dialogue(dialogue_t *d);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user