> compile NEMU
221220000 张三 Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 20:22:04 up 7 days, 20:22, 1 user, load average: 0.32, 0.37, 0.30
This commit is contained in:
@ -26,7 +26,7 @@ void init_proc() {
|
||||
|
||||
// load program here
|
||||
void naive_uload(PCB *pcb, const char *filename);
|
||||
naive_uload(NULL, "/bin/bmp-test");
|
||||
naive_uload(NULL, "/bin/nslider");
|
||||
|
||||
}
|
||||
|
||||
|
@ -76,6 +76,7 @@ void NDL_OpenCanvas(int *w, int *h) {
|
||||
_get_screen(&dev_w, &dev_h);
|
||||
screen_w = (*w == 0 || *w > dev_w) ? dev_w : *w;
|
||||
screen_h = (*h == 0 || *h > dev_h) ? dev_h : *h;
|
||||
printf("NDL_OpenCanvas: %d,%d, dev %d,%d\n", screen_w, screen_h, dev_w, dev_h);
|
||||
}
|
||||
|
||||
void NDL_DrawRect(uint32_t *pixels, int x, int y, int w, int h) {
|
||||
|
Reference in New Issue
Block a user