c语言用easyX只显示窗口不显示照片

#include
#include
#include
#define BLOCK_KINDS_1 3
#define WIN_W 637
#define WIN_H 850
#define BLOCK_W 48
#define BLOCK_H 48

IMAGE imgBg;
IMAGE imgBlocks[BLOCK_KINDS_1];

int map[3][3];

}
srand(time(NULL));
for (int i = 0; i < 20; i++) {
    int row1 = rand() % 3;
    int col1 = rand() % 3;
    int row2 = rand() % 3;
    int col2 = rand() % 3;

    int tmp = map[row1][col1];
    map[row1][col1] = map[row2][col2]; 
    map[row2][col2] = tmp;
}

}
void gameInit() {
loadimage(&imgBg, "Resource/liu.jpg");
char fileName[256];
for (int i = 0; i < BLOCK_KINDS_1; i++) {
sprintf_s(fileName, sizeof(fileName), "%d.jpg",i+1);
loadimage(&imgBlocks[i], fileName);

    }
    //初始游戏地图
    /*initMap();*/
//创建游戏窗口
    initgraph(WIN_W, WIN_H);

}
void update() {
//先刷新背景图片
putimage(0, 0, &imgBg);//图片的左上角的坐标位置

//绘制游戏中心区域,多个小方块
//算法设计
// 思路:
//   1  1  1
//   2  2  2
//   3  3  3
// 随机打乱n++++++++++++++++++++++++++++++++++++++++++++++++++++++1// 
//第一关
int off = 10;
int marginX = (WIN_W - BLOCK_W * 3 - off * 2) / 2;
int marginY = 300;

int main(void) {
gameInit();
//游戏的主体循环
while (1) {
//刷新游戏窗口
//update();
}
return 0;
}
想让他显示出照片

loadimage(&imgBg, "Resource/liu.jpg"); 相对路径是相对于exe文件的。Resource目录要跟生成的exe文件在同一个文件夹里。
putimage是显示图片的函数,而update();被注释,putimage没有执行。