BGE Redraw problem:

at the moment only files from blender 2.4x will display in 2.5x, compared area and window structs in both cases and dont see any differences.

This doesnt fix the problem but corrects a few things related to window drawing with the BGE,
also adds a hack because I noticed the window and area pointers in the KX_BlenderCanvas were offset after initialized, maybe need to use <static cast> ?
This commit is contained in:
Campbell Barton
2009-06-27 23:54:20 +00:00
parent 35ac032b55
commit aa933d2c9f
5 changed files with 31 additions and 32 deletions

View File

@@ -28,15 +28,23 @@
#include "KX_BlenderCanvas.h"
#include "DNA_screen_types.h"
#include "stdio.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
// temp hack, prevents pointers being offset somehow, will need to look into this later - Campbell
ARegion *m_ar;
wmWindow *m_win;
KX_BlenderCanvas::KX_BlenderCanvas(struct wmWindow *win, ARegion *ar) :
m_win(win),
m_ar(ar)
__m_win(win),
__m_ar(ar)
{
m_ar= ar;
m_win= win;
}
KX_BlenderCanvas::~KX_BlenderCanvas()