|
@@ -170,7 +170,7 @@ void WindowSDL::eventHandling() {
|
170
|
170
|
while(SDL_PollEvent(&event)) {
|
171
|
171
|
switch (event.type) {
|
172
|
172
|
case SDL_MOUSEMOTION:
|
173
|
|
-
|
|
173
|
+ gOpenRaider->handleMouseMotion(event.motion.xrel, event.motion.yrel);
|
174
|
174
|
break;
|
175
|
175
|
|
176
|
176
|
case SDL_MOUSEBUTTONDOWN:
|
|
@@ -541,12 +541,8 @@ void WindowSDL::writeString(WindowString *s) {
|
541
|
541
|
return;
|
542
|
542
|
}
|
543
|
543
|
|
544
|
|
- if (TTF_SizeUTF8(mFont, s->text, &s->w, &s->h) != 0) {
|
545
|
|
- printf("TTF_SizeUTF8 Error: %s\n", TTF_GetError());
|
546
|
|
- // Don't need to abort
|
547
|
|
- }
|
548
|
|
- s->w = (int)((float)s->w * s->scale);
|
549
|
|
- s->h = (int)((float)s->h * s->scale);
|
|
544
|
+ s->w = (int)((float)surface->w * s->scale);
|
|
545
|
+ s->h = (int)((float)surface->h * s->scale);
|
550
|
546
|
|
551
|
547
|
GLenum textureFormat;
|
552
|
548
|
if (surface->format->BytesPerPixel == 4) {
|