Tweak Draw_MakePic to be a little more usable.

This commit is contained in:
Bill Currie 2012-02-06 15:49:37 +09:00
parent d6ddbe4efe
commit 14c0e22494
3 changed files with 3 additions and 3 deletions

View file

@ -136,7 +136,7 @@ bi_Draw_MakePic (progs_t *pr)
draw_resources_t *res = PR_Resources_Find (pr, "Draw");
int width = P_INT (pr, 0);
int height = P_INT (pr, 1);
byte *data = (byte *) P_GPOINTER (pr, 2);
byte *data = (byte *) P_GSTRING (pr, 2);
qpic_t *pic;
qpic_res_t *qp;
bi_qpic_t *bq;

View file

@ -11,7 +11,7 @@ struct _qpic_t {
typedef struct _qpic_t *qpic_t;
@extern void Draw_FreePic (qpic_t pic);
@extern qpic_t Draw_MakePic (int width, int heiight, void *data);
@extern qpic_t Draw_MakePic (int width, int heiight, string data);
@extern qpic_t Draw_CachePic (string name, int alpha);
@extern void Draw_Pic (int x, int y, qpic_t pic);

View file

@ -1,7 +1,7 @@
#include "draw.h"
void Draw_FreePic (qpic_t pic) = #0;
qpic_t Draw_MakePic (int width, int heiight, void *data) = #0;
qpic_t Draw_MakePic (int width, int heiight, string data) = #0;
qpic_t (string name, int alpha) Draw_CachePic = #0;
void (int x, int y, qpic_t pic) Draw_Pic = #0;