pscsp/src/grid.c

9 lines
266 B
C
Raw Normal View History

2020-07-05 06:38:35 +00:00
#include "grid.h"
int gridHelper(SDL_Rect* rect, int index, SDL_Rect screen, int zoom, int page){
rect->y = 0;
2020-07-05 06:58:39 +00:00
rect->x = screen.w/10 * index * zoom / 10;
2020-07-05 06:38:35 +00:00
//printf("index %i -- x = %i | y = %i | w = %i | h = %i\n", index, rect->x, rect->y, rect->w, rect->h);
}