Right click is working. You can stop drawing polylines and do various other things
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@83 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
ec2a3083b7
commit
7e48434e19
@ -1388,7 +1388,6 @@ void Bouton_Resol(void)
|
|||||||
Readline(62,37,Chaine,4,1);
|
Readline(62,37,Chaine,4,1);
|
||||||
Largeur_choisie=atoi(Chaine);
|
Largeur_choisie=atoi(Chaine);
|
||||||
// On corrige les dimensions
|
// On corrige les dimensions
|
||||||
DEBUG("Valide",0);
|
|
||||||
if (Largeur_choisie==0)
|
if (Largeur_choisie==0)
|
||||||
{
|
{
|
||||||
Largeur_choisie=1;
|
Largeur_choisie=1;
|
||||||
|
|||||||
10
divers.c
10
divers.c
@ -126,7 +126,13 @@ void Get_input(void)
|
|||||||
break;
|
break;
|
||||||
case SDL_MOUSEBUTTONDOWN:
|
case SDL_MOUSEBUTTONDOWN:
|
||||||
//Clic sur un des boutons de la souris
|
//Clic sur un des boutons de la souris
|
||||||
INPUT_Nouveau_Mouse_K=event.button.button;
|
switch(event.button.button)
|
||||||
|
{
|
||||||
|
case SDL_BUTTON_LEFT: INPUT_Nouveau_Mouse_K = 1; break;
|
||||||
|
case SDL_BUTTON_MIDDLE: // Pour SDL, 2 = clic milieu. Pour nous c'est le clic droit
|
||||||
|
case SDL_BUTTON_RIGHT: // Clic droit SDL, clic droit pour nous aussi ( pour le moment en tout cas)
|
||||||
|
INPUT_Nouveau_Mouse_K = 2;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case SDL_MOUSEBUTTONUP:
|
case SDL_MOUSEBUTTONUP:
|
||||||
//Bouton souris relaché
|
//Bouton souris relaché
|
||||||
@ -450,7 +456,7 @@ void Rotate_90_deg_LOWLEVEL(byte * Source,byte * Destination)
|
|||||||
|
|
||||||
void Remap_general_LOWLEVEL(byte * Table_conv,byte * Buffer,short Largeur,short Hauteur,short Largeur_buffer)
|
void Remap_general_LOWLEVEL(byte * Table_conv,byte * Buffer,short Largeur,short Hauteur,short Largeur_buffer)
|
||||||
{
|
{
|
||||||
puts("Remap_general_LOWLEVEL non implémenté!");
|
UNIMPLEMENTED
|
||||||
}
|
}
|
||||||
|
|
||||||
void Copier_image_dans_brosse(short Debut_X,short Debut_Y,short Brosse_Largeur,short Brosse_Hauteur,word Largeur_image)
|
void Copier_image_dans_brosse(short Debut_X,short Debut_Y,short Brosse_Largeur,short Brosse_Hauteur,word Largeur_image)
|
||||||
|
|||||||
3
graph.c
3
graph.c
@ -3003,7 +3003,8 @@ void Afficher_sprite_dans_menu(int Numero_bouton,int Numero_sprite)
|
|||||||
Pixel_dans_menu(Pos_menu_X,Pos_menu_Y,Couleur);
|
Pixel_dans_menu(Pos_menu_X,Pos_menu_Y,Couleur);
|
||||||
BLOCK_MENU[Pos_menu_Y][Pos_menu_X]=Couleur;
|
BLOCK_MENU[Pos_menu_Y][Pos_menu_X]=Couleur;
|
||||||
}
|
}
|
||||||
SDL_UpdateRect(Ecran_SDL,0,Menu_Ordonnee*Menu_Facteur_Y,Pos_X*Menu_Facteur_X,Pos_Y*Menu_Facteur_Y);
|
SDL_UpdateRect(Ecran_SDL,Menu_Facteur_X*(Bouton[Numero_bouton].Decalage_X+1),(Bouton[Numero_bouton].Decalage_Y+1)*Menu_Facteur_Y,
|
||||||
|
Pos_X*Menu_Facteur_X,Pos_Y*Menu_Facteur_Y);
|
||||||
}
|
}
|
||||||
|
|
||||||
// -- Redessiner la forme du pinceau dans le menu --
|
// -- Redessiner la forme du pinceau dans le menu --
|
||||||
|
|||||||
@ -8,6 +8,7 @@
|
|||||||
#include "operatio.h"
|
#include "operatio.h"
|
||||||
#include "boutons.h"
|
#include "boutons.h"
|
||||||
#include "pages.h"
|
#include "pages.h"
|
||||||
|
#include "erreurs.h"
|
||||||
|
|
||||||
#ifdef __WATCOMC__
|
#ifdef __WATCOMC__
|
||||||
#define M_PI 3.14159265358979323846
|
#define M_PI 3.14159265358979323846
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user