[Scummvm-devel] New OS interface
Marcus Comstedt
marcus at mc.pp.se
Wed Apr 17 12:30:56 CEST 2002
Looking at sdl.cpp to figure out the new mouse interface, I see
const int ydraw = _ms_cur.y + _current_shake_pos - _ms_hotspot_x;
const int xdraw = _ms_cur.x - _ms_hotspot_y;
Is this the correct semantics? Should -hotspot_x really be added to
y, and -hotspot_y to x? Seems a little backwards (or rotated 90° at
least :)...
Also, I'm a little curious about
// Create a thread
virtual void *create_thread(ThreadProc *proc, void *param) = 0;
Fortunately it seems that this function is never called, but it still
worries me a little. I have no intention of writing a preemptive
thread implementation for the Dreamcast. If something needs to be
done in the background I'd rather do it from a raster or timer
interrupt, if calling it from delay_msecs is insufficient.
// Marcus
More information about the Scummvm-devel
mailing list