if (pic->flags & CACHEPICFLAG_NEWPIC && pic->skinframe && pic->skinframe->base && pic->width == width && pic->height == height)
{
Con_DPrintf("Draw_NewPic(\"%s\"): frame %i: updating texture\n", picname, draw_frame);
- R_UpdateTexture(pic->skinframe->base, pixels_bgra, 0, 0, 0, width, height, 1);
+ R_UpdateTexture(pic->skinframe->base, pixels_bgra, 0, 0, 0, width, height, 1, 0);
R_SkinFrame_MarkUsed(pic->skinframe);
pic->lastusedframe = draw_frame;
return pic;
void DrawQ_Pic(float x, float y, cachepic_t *pic, float width, float height, float red, float green, float blue, float alpha, int flags)
{
- dp_model_t *mod = CL_Mesh_UI();
+ model_t *mod = CL_Mesh_UI();
msurface_t *surf;
int e0, e1, e2, e3;
if (!pic)
float cosaf = cos(af);
float sinar = sin(ar);
float cosar = cos(ar);
- dp_model_t *mod = CL_Mesh_UI();
+ model_t *mod = CL_Mesh_UI();
msurface_t *surf;
int e0, e1, e2, e3;
if (!pic)
size_t bytes_left;
float dw, dh;
const float *width_of;
- dp_model_t *mod = CL_Mesh_UI();
+ model_t *mod = CL_Mesh_UI();
msurface_t *surf = NULL;
int e0, e1, e2, e3;
int tw, th;
void DrawQ_SuperPic(float x, float y, cachepic_t *pic, float width, float height, float s1, float t1, float r1, float g1, float b1, float a1, float s2, float t2, float r2, float g2, float b2, float a2, float s3, float t3, float r3, float g3, float b3, float a3, float s4, float t4, float r4, float g4, float b4, float a4, int flags)
{
- dp_model_t *mod = CL_Mesh_UI();
+ model_t *mod = CL_Mesh_UI();
msurface_t *surf;
int e0, e1, e2, e3;
if (!pic)
void DrawQ_Line (float width, float x1, float y1, float x2, float y2, float r, float g, float b, float alpha, int flags)
{
- dp_model_t *mod = CL_Mesh_UI();
+ model_t *mod = CL_Mesh_UI();
msurface_t *surf;
int e0, e1, e2, e3;
float offsetx, offsety;
void DrawQ_FlushUI(void)
{
- dp_model_t *mod = CL_Mesh_UI();
+ model_t *mod = CL_Mesh_UI();
if (mod->num_surfaces == 0)
return;