Skip to content

Commit

Permalink
use WSLoadRasterImage
Browse files Browse the repository at this point in the history
  • Loading branch information
trunkmaster committed Aug 2, 2024
1 parent 834b796 commit 3c0576a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Applications/Workspace/WM/texture.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@

#include "WM.h"
#include "texture.h"
#include "window.h"
#include "misc.h"

#include <window.h>
#include <defaults.h>
#include <Workspace+WM.h>

static void bevelImage(RImage *image, int relief);
static RImage *get_texture_image(WScreen *scr, const char *pixmap_file);
Expand Down Expand Up @@ -341,7 +343,8 @@ static RImage *get_texture_image(WScreen *scr, const char *pixmap_file)
WMLogWarning(_("image file \"%s\" used as texture could not be found."), pixmap_file);
return NULL;
}
image = RLoadImage(scr->rcontext, file, 0);
// image = RLoadImage(scr->rcontext, file, 0);
image = WSLoadRasterImage(file);
if (!image) {
WMLogWarning(_("could not load texture pixmap \"%s\":%s"), file, RMessageForError(RErrorCode));
wfree(file);
Expand Down

0 comments on commit 3c0576a

Please sign in to comment.