Home
last modified time | relevance | path

Searched refs:new_xoff (Results 1 – 4 of 4) sorted by relevance

/dports/games/cgoban/cgoban-1.9.14/wmslib/src/abut/
H A Dswin.c107 int new_yoff = 0, new_xoff = 0; in abutSwin_resize() local
154 new_xoff = xratio * (canWinW - canViewW) + 0.5; in abutSwin_resize()
159 if (new_xoff > canWinW - canViewW) in abutSwin_resize()
160 new_xoff = canWinW - canViewW; in abutSwin_resize()
163 if (new_xoff < 0) in abutSwin_resize()
164 new_xoff = 0; in abutSwin_resize()
192 butSlide_set(swin->hSlide, canWinW - canViewW, new_xoff, canViewW); in abutSwin_resize()
193 v_moved(swin->hSlide, new_xoff, FALSE); in abutSwin_resize()
199 butSlide_set(swin->hSlide, canWinW - canViewW, new_xoff, canViewW); in abutSwin_resize()
200 v_moved(swin->hSlide, new_xoff, FALSE); in abutSwin_resize()
/dports/games/simutrans/simutrans-121.0/display/
H A Dviewport.cc72 void viewport_t::change_world_position( koord new_ij, sint16 new_xoff, sint16 new_yoff ) in change_world_position() argument
75 new_ij.x -= new_xoff/cached_img_size; in change_world_position()
76 new_ij.y += new_xoff/cached_img_size; in change_world_position()
77 new_xoff %= cached_img_size; in change_world_position()
93 if(new_ij!=ij_off || new_xoff!=x_off || new_yoff!=y_off) { in change_world_position()
95 x_off = new_xoff; in change_world_position()
/dports/games/simutrans/simutrans-121.0/
H A Dsiminteraction.cc37 sint16 new_xoff = viewport->get_x_off() - (ev.mx-ev.cx) * env_t::scroll_multi; in move_view() local
42 viewport->change_world_position( new_ij, new_xoff, new_yoff ); in move_view()
H A Dsimworld.cc3549 int new_xoff = 0; in sync_step() local
3551 v.get_screen_offset( new_xoff, new_yoff, get_tile_raster_width() ); in sync_step()
3552 new_xoff -= tile_raster_scale_x(-v.get_xoff(), rw); in sync_step()
3554 viewport->change_world_position( new_pos.get_2d(), -new_xoff, -new_yoff ); in sync_step()