fixed link error and bug in progress bar control

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@2279 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 113b4ac0e1ad8f533b7e124b62cb300c7ad0bab3
Former-commit-id: 4c3624fb8e61f38dec686fe8fc64fdc5d87524cd
This commit is contained in:
briangr 2010-02-28 19:13:05 +00:00
parent c6d2aa14eb
commit 3fe9f9a492
2 changed files with 0 additions and 8 deletions

View file

@ -219,7 +219,6 @@ typedef struct
typedef struct
{
void *scr;
GLuint progressbackground;
GLuint progressbarimage;
float min;
float max;

View file

@ -50,15 +50,9 @@ int GfuiProgressbarCreate(void *scr, int x, int y, int w, int h, const char *psz
object->id = screen->curId++;
progress = &(object->u.progressbar);
progress->progressbackground = GfTexReadTex(pszProgressbackImg);
if (!progress->progressbackground) {
free(object);
return -1;
}
progress->progressbarimage = GfTexReadTex(progressbarimg);
if (!progress->progressbarimage) {
GfTexFreeTex(progress->progressbackground);
free(object);
return -1;
}
@ -138,7 +132,6 @@ gfuiReleaseProgressbar(tGfuiObject *obj)
tGfuiProgressbar *progress;
progress = &(obj->u.progressbar);
GfTexFreeTex(progress->progressbackground);
GfTexFreeTex(progress->progressbarimage);
free(obj);