165
165
tile = fn_environment_get_tile(env, tilenr);
166
fn_tile_blit_to_sdl_surface(tile, NULL, target, &dstrect);
166
fn_texture_blit_to_sdl_surface(tile, NULL, target, &dstrect);
168
168
dstrect.x += dstrect.w;
169
169
tile = fn_environment_get_tile(env, tilenr+1);
170
fn_tile_blit_to_sdl_surface(tile, NULL, target, &dstrect);
170
fn_texture_blit_to_sdl_surface(tile, NULL, target, &dstrect);
172
172
dstrect.x -= dstrect.w;
173
173
dstrect.y += dstrect.h;
174
174
tile = fn_environment_get_tile(env, tilenr+2);
175
fn_tile_blit_to_sdl_surface(tile, NULL, target, &dstrect);
175
fn_texture_blit_to_sdl_surface(tile, NULL, target, &dstrect);
177
177
dstrect.x += dstrect.w;
178
178
tile = fn_environment_get_tile(env, tilenr+3);
179
fn_tile_blit_to_sdl_surface(tile, NULL, target, &dstrect);
179
fn_texture_blit_to_sdl_surface(tile, NULL, target, &dstrect);
181
181
if (fn_environment_get_draw_collision_bounds(env)) {
182
182
fn_collision_rect_draw(target, pixelsize, &(hero->position));