Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.

Commit

Permalink
Update wm.c
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinAlavik authored Feb 24, 2024
1 parent c36f37a commit 7b19ddd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/system/wm/wm.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <system/drivers/keyboard.h>
#include <system/memory/pmm.h>
#include <vga.h>
#include <tga.h>

#define DHEIGHT 25

Expand All @@ -32,4 +33,13 @@ void init_wm() {
if (s == STATUS_OK) {
printf("%s\n", buf);
}

char *img;

vfs_op_status ss = driver_read(vfs, 0x00000000, "/root/IMG_3930.tga", &img);

if (ss == STATUS_OK) {
draw_targa_image(img, 4096, 0, 0);
}

}

0 comments on commit 7b19ddd

Please sign in to comment.