projects
/
winnie
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added memory allocator
[winnie]
/
src
/
sdl
/
mouse.cc
diff --git
a/src/sdl/mouse.cc
b/src/sdl/mouse.cc
index
224bc47
..
546f3bf
100644
(file)
--- a/
src/sdl/mouse.cc
+++ b/
src/sdl/mouse.cc
@@
-2,6
+2,7
@@
#include <SDL/SDL.h>
#include "mouse.h"
#include <SDL/SDL.h>
#include "mouse.h"
+#include "shalloc.h"
#include "window.h"
#include "wm.h"
#include "window.h"
#include "wm.h"
@@
-17,7
+18,7
@@
static Mouse *mouse;
bool init_mouse()
{
bool init_mouse()
{
- if(!(mouse = (Mouse*)malloc(sizeof *mouse))) {
+ if(!(mouse = (Mouse*)sh_malloc(sizeof *mouse))) {
return false;
}
return true;
return false;
}
return true;
@@
-25,7
+26,7
@@
bool init_mouse()
void destroy_mouse()
{
void destroy_mouse()
{
- free(mouse);
+ sh_free(mouse);
}
void set_mouse_bounds(const Rect &rect)
}
void set_mouse_bounds(const Rect &rect)