mirror of
https://github.com/Fennix-Project/Userspace.git
synced 2025-05-28 15:34:26 +00:00
Fix stub lib
This commit is contained in:
parent
1a2f662bf9
commit
78494d58eb
8
libs/include/libdraw.h
Normal file
8
libs/include/libdraw.h
Normal file
@ -0,0 +1,8 @@
|
||||
#ifndef __FENNIX_LIB_DRAW_H__
|
||||
#define __FENNIX_LIB_DRAW_H__
|
||||
|
||||
#include <types.h>
|
||||
|
||||
void DrawRect(int x, int y, int w, int h, int color);
|
||||
|
||||
#endif // !__FENNIX_LIB_DRAW_H__
|
@ -1,7 +1,15 @@
|
||||
#include <libdraw.h>
|
||||
|
||||
#include "../../../Kernel/syscalls.h"
|
||||
|
||||
int stub()
|
||||
void DrawRect(int x, int y, int w, int h, int color)
|
||||
{
|
||||
return 0;
|
||||
int i, j;
|
||||
for (i = 0; i < w; i++)
|
||||
{
|
||||
for (j = 0; j < h; j++)
|
||||
{
|
||||
// TODO: DrawPixel(x + i, y + j, color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -27,7 +27,9 @@ else ifeq ($(OSARCH), i386)
|
||||
ASM_ARCH := elf32
|
||||
endif
|
||||
|
||||
CFLAGS := -fPIC -fPIE -I../include -I../../libc/include
|
||||
SIMD_FLAGS := -mno-sse -mno-sse2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4 -mno-avx -mno-avx2 -mno-avx512f
|
||||
|
||||
CFLAGS := -fPIC -fPIE -I../include -I../../libc/include $(SIMD_FLAGS)
|
||||
|
||||
build: $(OBJECT_NAME)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user