diff options
Diffstat (limited to 'source/gameengine/BlenderRoutines/KX_BlenderCanvas.cpp')
-rw-r--r-- | source/gameengine/BlenderRoutines/KX_BlenderCanvas.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/gameengine/BlenderRoutines/KX_BlenderCanvas.cpp b/source/gameengine/BlenderRoutines/KX_BlenderCanvas.cpp index 1604dfe5cce..750a1ef3f93 100644 --- a/source/gameengine/BlenderRoutines/KX_BlenderCanvas.cpp +++ b/source/gameengine/BlenderRoutines/KX_BlenderCanvas.cpp @@ -26,7 +26,7 @@ * ***** END GPL LICENSE BLOCK ***** */ -#include "BIF_scrarea.h" +//XXX #include "BIF_scrarea.h" #include "KX_BlenderCanvas.h" #ifdef HAVE_CONFIG_H @@ -93,12 +93,12 @@ void KX_BlenderCanvas::ClearBuffer(int type) int KX_BlenderCanvas::GetWidth( ) const { - return scrarea_get_win_width(m_area); + return 0; //XXX scrarea_get_win_width(m_area); } int KX_BlenderCanvas::GetHeight( ) const { - return scrarea_get_win_height(m_area); + return 0; //XXX scrarea_get_win_height(m_area); } RAS_Rect & @@ -116,8 +116,8 @@ SetViewPort( ){ int vp_width = (x2 - x1) + 1; int vp_height = (y2 - y1) + 1; - int minx = scrarea_get_win_x(m_area); - int miny = scrarea_get_win_y(m_area); + int minx = 0;//XXX scrarea_get_win_x(m_area); + int miny = 0;//XXX scrarea_get_win_y(m_area); m_area_rect.SetLeft(minx + x1); m_area_rect.SetBottom(miny + y1); @@ -159,9 +159,9 @@ void KX_BlenderCanvas::SetMouseState(RAS_MouseState mousestate) // (0,0) is top left, (width,height) is bottom right void KX_BlenderCanvas::SetMousePosition(int x,int y) { - int winX = scrarea_get_win_x(m_area); - int winY = scrarea_get_win_y(m_area); - int winH = scrarea_get_win_height(m_area); + int winX = 0;//XXX scrarea_get_win_x(m_area); + int winY = 0;//XXX scrarea_get_win_y(m_area); + int winH = 0;//XXX scrarea_get_win_height(m_area); BL_warp_pointer(winX + x, winY + (winH-y-1)); } |