summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/testparseall.c20
-rw-r--r--src/test/testrender.c8
2 files changed, 15 insertions, 13 deletions
diff --git a/src/test/testparseall.c b/src/test/testparseall.c
index 9528b4e..de456e5 100644
--- a/src/test/testparseall.c
+++ b/src/test/testparseall.c
@@ -13,16 +13,16 @@ int main() {
int i,res;
struct test_ini_file ini_list[] = {
- { ini_style, "data/styles/brick/brick.ini" },
- { ini_style, "data/styles/bubble/bubble.ini" },
- { ini_style, "data/styles/crystal/crystal.ini" },
- { ini_style, "data/styles/dirt/dirt.ini" },
- { ini_style, "data/styles/fire/fire.ini" },
- { ini_style, "data/styles/marble/marble.ini" },
- { ini_style, "data/styles/pillar/pillar.ini" },
- { ini_style, "data/styles/rock/rock.ini" },
- { ini_style, "data/styles/snow/snow.ini"},
- { ini_style, "data/styles/special/special.ini" },
+ { ini_style, "data/style/brick/brick.ini" },
+ { ini_style, "data/style/bubble/bubble.ini" },
+ { ini_style, "data/style/crystal/crystal.ini" },
+ { ini_style, "data/style/dirt/dirt.ini" },
+ { ini_style, "data/style/fire/fire.ini" },
+ { ini_style, "data/style/marble/marble.ini" },
+ { ini_style, "data/style/pillar/pillar.ini" },
+ { ini_style, "data/style/rock/rock.ini" },
+ { ini_style, "data/style/snow/snow.ini"},
+ { ini_style, "data/style/special/special.ini" },
{ ini_levelpack, "data/level/1_orig/levelpack.ini" },
{ ini_levelpack, "data/level/2_ohno/levelpack.ini" },
{ ini_levelpack, "data/level/3_test/levelpack.ini" },
diff --git a/src/test/testrender.c b/src/test/testrender.c
index f4c5173..990efef 100644
--- a/src/test/testrender.c
+++ b/src/test/testrender.c
@@ -60,7 +60,7 @@ int main(int argc, char **argv) {
SDL_Event sdl_ev;
int rlLen, mainloop_end=0;
- SDL_Rect win_pos = { .x=SDL_WINDOWPOS_UNDEFINED, .y=SDL_WINDOWPOS_UNDEFINED, .w=1920, .h=1200 };
+ SDL_Rect win_pos = { .x=SDL_WINDOWPOS_UNDEFINED, .y=SDL_WINDOWPOS_UNDEFINED, .w=640, .h=480 };
Uint32 init_flags = SDL_INIT_TIMER|SDL_INIT_VIDEO;
Uint32 win_flags = SDL_WINDOW_SHOWN;
Uint32 rend_flags = SDL_RENDERER_ACCELERATED; // | SDL_RENDERER_PRESENTVSYNC;
@@ -130,8 +130,8 @@ int addRLitem(render_item_t list[], sprite_t *it, int rlMaxLen) {
if (tmp_h < it->size.h) tmp_h = it->size.h;
cur++;
- if (curr_x >= 1920) {
- curr_x=0;
+ if (curr_x >= 640) {
+ curr_x = 0;
curr_y += tmp_h;
tmp_h=0;
}
@@ -172,10 +172,12 @@ int buildTestRL(gameRess_t *gRess, int rlMaxLen, render_item_t render_list[]) {
rlLen=addRLitem(render_list, &gRess->countdown, rlMaxLen);
rlLen=addRLitem(render_list, &gRess->cursor, rlMaxLen);
+ /* No more textues but surface (for custom one time blitting)
for (i=0; i<MAX_TILES_COUNT; i++) {
rlLen=addRLitem(render_list, &gRess->tiles[i], rlMaxLen);
}
rlLen=addRLitem(render_list, NULL, rlMaxLen);
+ */
return rlLen;
}