MINI v.0.9.64d:

- [NEW] origin(x,y) sets the origin of the coordinate system.
- [FIX] false extern declaration removed.
- MINI_VERSION has its own header file.
This commit is contained in:
2023-07-05 07:58:31 +02:00
parent dab7a96ec2
commit 9b99aa23cf
5 changed files with 22 additions and 3 deletions

View File

@@ -9,7 +9,7 @@
#include <libgen.h>
#endif
extern DECLSPEC int SDLCALL (*event_handler_ptr)(SDL_Event*) = &SDL_PollEvent;
DECLSPEC int SDLCALL (*event_handler_ptr)(SDL_Event*) = &SDL_PollEvent;
#pragma pack(1)
@@ -671,6 +671,11 @@ void view() {
ds::clp[0] = ds::clp[1] = 0; ds::clp[2] = screen_width-1; ds::clp[3] = screen_height-1;
}
void origin(int x, int y) {
ds::cam[0] = -(ds::clip[0]+x);
ds::cam[1] = -(ds::clip[1]+y);
}
void _drawcirc(int xc, int yc, int x, int y) {
pset(xc+x, yc+y);
pset(xc-x, yc+y);