src/window.cpp
branchgamebalance
changeset 9913 e79cd19772dd
parent 9911 0b8b245a2391
equal deleted inserted replaced
9912:1ac8aac92385 9913:e79cd19772dd
    15 #include "console.h"
    15 #include "console.h"
    16 #include "variables.h"
    16 #include "variables.h"
    17 #include "table/sprites.h"
    17 #include "table/sprites.h"
    18 #include "genworld.h"
    18 #include "genworld.h"
    19 #include "helpers.hpp"
    19 #include "helpers.hpp"
       
    20 #include "blitter/factory.hpp"
    20 
    21 
    21 /* delta between mouse cursor and upper left corner of dragged window */
    22 /* delta between mouse cursor and upper left corner of dragged window */
    22 static Point _drag_delta;
    23 static Point _drag_delta;
    23 
    24 
    24 static Window _windows[25];
    25 static Window _windows[25];
   268 		dp->width = right - left;
   269 		dp->width = right - left;
   269 		dp->height = bottom - top;
   270 		dp->height = bottom - top;
   270 		dp->left = left - (*wz)->left;
   271 		dp->left = left - (*wz)->left;
   271 		dp->top = top - (*wz)->top;
   272 		dp->top = top - (*wz)->top;
   272 		dp->pitch = _screen.pitch;
   273 		dp->pitch = _screen.pitch;
   273 		dp->dst_ptr = _screen.dst_ptr + top * _screen.pitch + left;
   274 		dp->dst_ptr = BlitterFactoryBase::GetCurrentBlitter()->MoveTo(_screen.dst_ptr, left, top);
   274 		dp->zoom = ZOOM_LVL_NORMAL;
   275 		dp->zoom = ZOOM_LVL_NORMAL;
   275 		CallWindowEventNP(*wz, WE_PAINT);
   276 		CallWindowEventNP(*wz, WE_PAINT);
   276 	}
   277 	}
   277 }
   278 }
   278 
   279