diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-17 20:49:03 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-17 20:49:03 +0000 |
| commit | 77465c2629ef63629d69c97a0af60a47a07ce7f5 (patch) | |
| tree | 3d361898d0f29f4b789e52682e0945c741df6cb0 /src/widget | |
| parent | b6af4e925f4cf9dd284728e846b99e1de776ec31 (diff) | |
- opravena chyba, tux mophol pomocou bombballu vybuchnuteho v objekte do ktoreho sa dostal ako duch pridavat itemy
- kod namiesto SDL_Surface pouziva moj typ image_t
git-svn-id: http://opensvn.csie.org/tuxanci_ng@154 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/widget')
| -rw-r--r-- | src/widget/widget_button.c | 4 | ||||
| -rw-r--r-- | src/widget/widget_buttonimage.c | 2 | ||||
| -rw-r--r-- | src/widget/widget_buttonimage.h | 4 | ||||
| -rw-r--r-- | src/widget/widget_check.c | 2 | ||||
| -rw-r--r-- | src/widget/widget_image.c | 2 | ||||
| -rw-r--r-- | src/widget/widget_image.h | 4 | ||||
| -rw-r--r-- | src/widget/widget_textfield.c | 4 |
7 files changed, 11 insertions, 11 deletions
diff --git a/src/widget/widget_button.c b/src/widget/widget_button.c index 0bdab86..4cff900 100644 --- a/src/widget/widget_button.c +++ b/src/widget/widget_button.c @@ -25,8 +25,8 @@ widget_button_t* newWidgetButton(char *text, int x, int y, void (*fce_event)(voi void drawWidgetButton(widget_button_t *p) { - static SDL_Surface *g_button0 = NULL; - static SDL_Surface *g_button1 = NULL; + static image_t *g_button0 = NULL; + static image_t *g_button1 = NULL; int x, y; getMousePosition(&x, &y); diff --git a/src/widget/widget_buttonimage.c b/src/widget/widget_buttonimage.c index 0b6e961..6dfbe66 100644 --- a/src/widget/widget_buttonimage.c +++ b/src/widget/widget_buttonimage.c @@ -6,7 +6,7 @@ #include "image.h" #include "widget_buttonimage.h" -widget_buttonimage_t* newWidgetButtonimage(SDL_Surface *image, int x, int y, void (*fce_event)(void *)) +widget_buttonimage_t* newWidgetButtonimage(image_t *image, int x, int y, void (*fce_event)(void *)) { widget_buttonimage_t *new; diff --git a/src/widget/widget_buttonimage.h b/src/widget/widget_buttonimage.h index d03423e..e85ce70 100644 --- a/src/widget/widget_buttonimage.h +++ b/src/widget/widget_buttonimage.h @@ -12,11 +12,11 @@ typedef struct widget_buttonimageimage int x, y; int w, h; int active; - SDL_Surface *image; + image_t *image; void (*fce_event)(void *); } widget_buttonimage_t; -extern widget_buttonimage_t* newWidgetButtonimage(SDL_Surface *image, int x, int y, +extern widget_buttonimage_t* newWidgetButtonimage(image_t *image, int x, int y, void (*fce_event)(void *)); extern void drawWidgetButtonimage(widget_buttonimage_t *p); diff --git a/src/widget/widget_check.c b/src/widget/widget_check.c index 192ae9b..584b6da 100644 --- a/src/widget/widget_check.c +++ b/src/widget/widget_check.c @@ -21,7 +21,7 @@ widget_check_t* newWidgetCheck(int x, int y, bool_t status, void (*fce_event)(vo void drawWidgetCheck(widget_check_t *p) { - static SDL_Surface *g_check = NULL; + static image_t *g_check = NULL; int x, y; int offset; diff --git a/src/widget/widget_image.c b/src/widget/widget_image.c index 6437451..8be8080 100644 --- a/src/widget/widget_image.c +++ b/src/widget/widget_image.c @@ -8,7 +8,7 @@ #include "font.h" #include "widget_image.h" -widget_image_t* newWidgetImage(int x, int y, SDL_Surface *image) +widget_image_t* newWidgetImage(int x, int y, image_t *image) { widget_image_t *new; diff --git a/src/widget/widget_image.h b/src/widget/widget_image.h index 6bb316c..8a038da 100644 --- a/src/widget/widget_image.h +++ b/src/widget/widget_image.h @@ -9,10 +9,10 @@ typedef struct widget_image { int x, y; - SDL_Surface *image; + image_t *image; } widget_image_t; -extern widget_image_t* newWidgetImage(int x, int y, SDL_Surface *image); +extern widget_image_t* newWidgetImage(int x, int y, image_t *image); extern void drawWidgetImage(widget_image_t *p); extern void eventWidgetImage(widget_image_t *p); extern void destroyWidgetImage(widget_image_t *p); diff --git a/src/widget/widget_textfield.c b/src/widget/widget_textfield.c index 2a8a02c..70e2a66 100644 --- a/src/widget/widget_textfield.c +++ b/src/widget/widget_textfield.c @@ -30,8 +30,8 @@ widget_textfield_t* newWidgetTextfield(char *text, int filter, int x, int y) static void drawBackground(widget_textfield_t *p) { - static SDL_Surface *g_textfield0 = NULL; - static SDL_Surface *g_textfield1 = NULL; + static image_t *g_textfield0 = NULL; + static image_t *g_textfield1 = NULL; int x, y; getMousePosition(&x, &y); |