@@ -26,6 +26,7 @@ GNU General Public License for more details.
26
26
#include " FontManager.h"
27
27
#include " BtnsBMPTable.h"
28
28
#include " WindowSystem.h"
29
+ #include " Image.h"
29
30
30
31
#define UI_MAX_MENUDEPTH 64
31
32
#define UI_MAX_MENUITEMS 64
@@ -192,11 +193,21 @@ inline int UI_DrawString( HFont font, Point pos, Size size, const char *str, con
192
193
return UI_DrawString ( font, pos.x , pos.y , size.w , size.h , str, col, charH, justify, flags );
193
194
}
194
195
195
- void UI_DrawPic (int x, int y, int w, int h, const unsigned int color, const char * pic, const ERenderMode eRenderMode = QM_DRAWNORMAL );
196
- inline void UI_DrawPic ( Point pos, Size size, const unsigned int color, const char * pic, const ERenderMode eRenderMode = QM_DRAWNORMAL )
196
+ void UI_DrawPic ( int x, int y, int w, int h, const unsigned int color, CImage & pic, const ERenderMode eRenderMode = QM_DRAWNORMAL );
197
+ inline void UI_DrawPic ( Point pos, Size size, const unsigned int color, CImage & pic, const ERenderMode eRenderMode = QM_DRAWNORMAL )
197
198
{
198
199
UI_DrawPic ( pos.x , pos.y , size.w , size.h , color, pic, eRenderMode );
199
200
}
201
+ inline void UI_DrawPic ( int x, int y, int w, int h, const unsigned int color, const char *pic, const ERenderMode eRenderMode = QM_DRAWNORMAL )
202
+ {
203
+ CImage img = pic;
204
+ UI_DrawPic ( x, y, w, h, color, img, eRenderMode );
205
+ }
206
+ inline void UI_DrawPic ( Point pos, Size size, const unsigned int color, const char *pic, const ERenderMode eRenderMode = QM_DRAWNORMAL )
207
+ {
208
+ CImage img = pic;
209
+ UI_DrawPic ( pos, size, color, img, eRenderMode );
210
+ }
200
211
void UI_FillRect ( int x, int y, int w, int h, const unsigned int color );
201
212
inline void UI_FillRect ( Point pos, Size size, const unsigned int color )
202
213
{
0 commit comments