Implemented window sizing (and re-sizing) by draggin window edges.

Unfinished, more work needed in:
* command-line arguments (grafx2 myimage.pcx -width 640 -height 480)
* querying SDL for best modes
* detecting bad modes and recovering (though shift+return restores to window)
* saving settings in gfx2.ini.
Also, now the window's close button triggers Quit. Both events (quit, resize)
are only taken into account when all menus are closed.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@188 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2008-10-03 01:06:42 +00:00
parent 7bf71cd7b0
commit 7ba9a726dc
18 changed files with 284 additions and 274 deletions

View File

@@ -4601,7 +4601,7 @@ void PI1_8b_to_16p(byte * Src,byte * Dst)
w3=(((word)Src[6])<<8) | Src[7];
for (i=0;i<16;i++)
{
// Pour décoder le pixel nøi, il faut traiter les 4 words sur leur bit
// Pour décoder le pixel n°i, il faut traiter les 4 words sur leur bit
// correspondant à celui du masque
Dst[i]=((w0 & masque)?0x01:0x00) |
@@ -4624,7 +4624,7 @@ void PI1_16p_to_8b(byte * Src,byte * Dst)
w0=w1=w2=w3=0;
for (i=0;i<16;i++)
{
// Pour coder le pixel nøi, il faut modifier les 4 words sur leur bit
// Pour coder le pixel n°i, il faut modifier les 4 words sur leur bit
// correspondant à celui du masque
w0|=(Src[i] & 0x01)?masque:0x00;