mirror of
https://github.com/ioquake/jedi-outcast.git
synced 2024-11-13 00:24:36 +00:00
use qWindow instead of Window to avoid a collision with X11 headers
This commit is contained in:
parent
78665efc0e
commit
e1727dbe76
2 changed files with 6 additions and 6 deletions
|
@ -32,7 +32,7 @@ void Menus_ShowItems(const char *menuName);
|
||||||
qboolean ParseRect(const char **p, rectDef_t *r);
|
qboolean ParseRect(const char **p, rectDef_t *r);
|
||||||
const char *String_Alloc(const char *p);
|
const char *String_Alloc(const char *p);
|
||||||
void ToWindowCoords(float *x, float *y, windowDef_t *window);
|
void ToWindowCoords(float *x, float *y, windowDef_t *window);
|
||||||
void Window_Paint(Window *w, float fadeAmount, float fadeClamp, float fadeCycle);
|
void Window_Paint(qWindow *w, float fadeAmount, float fadeClamp, float fadeCycle);
|
||||||
int Item_ListBox_ThumbDrawPosition(itemDef_t *item);
|
int Item_ListBox_ThumbDrawPosition(itemDef_t *item);
|
||||||
int Item_ListBox_ThumbPosition(itemDef_t *item);
|
int Item_ListBox_ThumbPosition(itemDef_t *item);
|
||||||
qboolean Rect_ContainsPoint(rectDef_t *rect, float x, float y) ;
|
qboolean Rect_ContainsPoint(rectDef_t *rect, float x, float y) ;
|
||||||
|
@ -167,7 +167,7 @@ Initializes a window structure ( windowDef_t ) with defaults
|
||||||
|
|
||||||
==================
|
==================
|
||||||
*/
|
*/
|
||||||
void Window_Init(Window *w)
|
void Window_Init(qWindow *w)
|
||||||
{
|
{
|
||||||
memset(w, 0, sizeof(windowDef_t));
|
memset(w, 0, sizeof(windowDef_t));
|
||||||
w->borderSize = 1;
|
w->borderSize = 1;
|
||||||
|
@ -6166,7 +6166,7 @@ void GradientBar_Paint(rectDef_t *rect, vec4_t color)
|
||||||
Window_Paint
|
Window_Paint
|
||||||
=================
|
=================
|
||||||
*/
|
*/
|
||||||
void Window_Paint(Window *w, float fadeAmount, float fadeClamp, float fadeCycle)
|
void Window_Paint(qWindow *w, float fadeAmount, float fadeClamp, float fadeCycle)
|
||||||
{
|
{
|
||||||
//float bordersize = 0;
|
//float bordersize = 0;
|
||||||
vec4_t color;
|
vec4_t color;
|
||||||
|
|
|
@ -280,7 +280,7 @@ typedef struct {
|
||||||
qhandle_t background; // background asset
|
qhandle_t background; // background asset
|
||||||
} windowDef_t;
|
} windowDef_t;
|
||||||
|
|
||||||
typedef windowDef_t Window;
|
typedef windowDef_t qWindow;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
vec4_t color; //
|
vec4_t color; //
|
||||||
|
@ -308,7 +308,7 @@ typedef struct modelDef_s {
|
||||||
} modelDef_t;
|
} modelDef_t;
|
||||||
|
|
||||||
typedef struct itemDef_s {
|
typedef struct itemDef_s {
|
||||||
Window window; // common positional, border, style, layout info
|
qWindow window; // common positional, border, style, layout info
|
||||||
UIRectangle textRect; // rectangle the text ( if any ) consumes
|
UIRectangle textRect; // rectangle the text ( if any ) consumes
|
||||||
int type; // text, button, radiobutton, checkbox, textfield, listbox, combo
|
int type; // text, button, radiobutton, checkbox, textfield, listbox, combo
|
||||||
int alignment; // left center right
|
int alignment; // left center right
|
||||||
|
@ -350,7 +350,7 @@ typedef struct itemDef_s {
|
||||||
} itemDef_t;
|
} itemDef_t;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Window window;
|
qWindow window;
|
||||||
const char *font; // font
|
const char *font; // font
|
||||||
qboolean fullScreen; // covers entire screen
|
qboolean fullScreen; // covers entire screen
|
||||||
int itemCount; // number of items;
|
int itemCount; // number of items;
|
||||||
|
|
Loading…
Reference in a new issue