Search found 8 matches

by REAPER
Mon Jul 26, 2004 10:17 pm
Forum: Bug reports
Topic: Memory leak
Replies: 1
Views: 1652

Memory leak

Destructor in CZipReader class doesn't clear list of files:

Code: Select all

CZipReader::~CZipReader()
{
	if (File)
		File->drop();

	s32 count = (s32)FileList.size();
}
MUST BE:

Code: Select all

CZipReader::~CZipReader()
{
	if (File)
		File->drop();

	FileList.clear();
}
by REAPER
Tue Jun 01, 2004 1:10 am
Forum: Off-topic
Topic: About sorting methods
Replies: 0
Views: 576

About sorting methods

Not so long ago I finished learning different sorting methods in my university, so I decided to compare all methods. Now I want to show it there. Here helpfull function: void swap(int* array, const int pos1, const int pos2) { array[pos2] = array[pos2] - array[pos1]; array[pos1] = array[pos2] + array...
by REAPER
Sun May 23, 2004 10:24 pm
Forum: Open Discussion and Dev Announcements
Topic: Sorting methods.
Replies: 1
Views: 416

Sorting methods.

Heap sort that uses in engine doesn't very fast. Even Shell sort is faster than heap sort. May be engine must use another sort method, like quick sort or linear sort?
by REAPER
Sat May 22, 2004 2:18 am
Forum: Open Discussion and Dev Announcements
Topic: More archive types
Replies: 3
Views: 513

More archive types

Niko, what do you think about adding new archive types. For example *.rar. RAR archive has greater compression than zip.
I know that on http://www.rarlab.com site there is unrar lib source.
by REAPER
Mon May 17, 2004 5:08 pm
Forum: Beginners Help
Topic: Texture resizing
Replies: 1
Views: 273

Texture resizing

How can I resize texture?
by REAPER
Sun May 16, 2004 10:23 pm
Forum: Bug reports
Topic: Bug in CGUISkin class
Replies: 1
Views: 1301

Bug in CGUISkin class

IGUISkin::setSize() function does not sets new size. At first it has wrong prototype: virtual void setSize(s32 size); MUST BE virtual void setSize(EGUI_DEFAULT_SIZE which, s32 newSize); This must be changed in IGUISkin.h, CGUISkin.h and CGUISkin.cpp. At last it has wrong body: void CGUISkin::setSize...
by REAPER
Wed May 12, 2004 10:29 pm
Forum: Bug reports
Topic: Bug in ScrollBar element
Replies: 1
Views: 1439

Bug in ScrollBar element

CGUIScrollBar element doesn't post an event that scroll pos has been changed when you use mouse wheel. case EMIE_MOUSE_WHEEL: setPos(getPos() + (s32)event.MouseInput.Wheel*-10); return true; must be case EMIE_MOUSE_WHEEL: setPos(getPos() + (s32)event.MouseInput.Wheel*-10); SEvent event; event.EventT...
by REAPER
Sat May 08, 2004 11:09 pm
Forum: Advanced Help
Topic: Seems to be a bug in FileOpenDialog element
Replies: 1
Views: 394

Seems to be a bug in FileOpenDialog element

In my project I use Lua scripts. In main loop I call function to execute script file, like this: while (device->run() && driver) { if (device->isWindowActive()) { driver->beginScene(true, true, video::SColor(0, 0, 0, 0)); execScriptFile("Data\\Scripts\\script.lua"); driver->endScen...