birdal46 / grafx2

Automatically exported from code.google.com/p/grafx2
0 stars 0 forks source link

Mouse cursor does not use SDL cursor #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The mouse cursor in GrafX2 is drawn on screen with a software routine, 
pixel by pixel. This is very slow and needs the screen to be updated at 
each mouse move.
We should make the mouse handling routine use the real SDL cursor wich is 
much faster.
We need to change this cursor with the appropriate functions in the GrafX2 
engine instead of the software one, wich should eventually be removed.

Original issue reported on code.google.com by pulkoma...@gmail.com on 29 Mar 2008 at 10:42

GoogleCodeExporter commented 8 years ago
The cursor drawing routine was changed a bit and is now much faster. A full 
screen
updaterect was done, wich was the cause for slow cursor.
However, using the hardware cursor with SDL isn't a bad idea.

Switching to "low priority"

Original comment by pulkoma...@gmail.com on 22 Jul 2008 at 2:42

GoogleCodeExporter commented 8 years ago
Cursor drawing and erasing is done in graph.c around lines 2200-2700.
However, the basic mouse arrow in grafx2 uses 16 colors and SDL can only display
monochromatic cursor.
The XOR lines will be a bit tricky to handle, also. So maybe this can't be done 
or
will lead to a worse design

Original comment by pulkoma...@gmail.com on 23 Jul 2008 at 8:27

GoogleCodeExporter commented 8 years ago
Pushing to milestone "2.0"

Original comment by pulkoma...@gmail.com on 14 Aug 2008 at 8:39

GoogleCodeExporter commented 8 years ago

Original comment by pulkoma...@gmail.com on 28 Dec 2008 at 9:45

GoogleCodeExporter commented 8 years ago

Original comment by pulkoma...@gmail.com on 14 Jan 2009 at 4:44

GoogleCodeExporter commented 8 years ago
This will not be done. We need far more capabilities than what SDL can done 
with the 
cursor anyways (rotations, big cursors, multiple colors,...)

Original comment by pulkoma...@gmail.com on 14 Jan 2009 at 4:46