From b6986f2b56a54aa8d8c51b67e86bf920b0420f30 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Tue, 12 Aug 2008 17:52:55 +0000 Subject: [PATCH] All brush effects working ! git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@119 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- boutons.c | 2 ++ divers.c | 6 ++---- gfx2.cfg | Bin 10351 -> 10351 bytes 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/boutons.c b/boutons.c index f689388a..d30cb189 100644 --- a/boutons.c +++ b/boutons.c @@ -4799,6 +4799,7 @@ void Dessiner_trame_zoomee(short Orig_X, short Orig_Y) for (Pos_Y=0; Pos_Y>(15-i))&1)?CM_Blanc:CM_Noir); + SDL_UpdateRect(Ecran_SDL,ToWinX(10),ToWinY(22),ToWinL(12*23+16),ToWinH(16)); } diff --git a/divers.c b/divers.c index 5eb5825f..12cf17a8 100644 --- a/divers.c +++ b/divers.c @@ -451,8 +451,7 @@ void Copier_une_partie_d_image_dans_une_autre(byte * Source,word S_Pos_X,word S_ byte Lit_pixel_dans_ecran_brouillon(word X,word Y) { - UNIMPLEMENTED - return 0; + return *(Brouillon_Ecran+Y*Brouillon_Largeur_image+X); } void Rotate_90_deg_LOWLEVEL(byte * Source,byte * Destination) @@ -535,8 +534,7 @@ dword Round_div(dword Numerateur,dword Diviseur) byte Effet_Trame(word X,word Y) { - UNIMPLEMENTED - return 0; + return Trame[X % Trame_Largeur][Y % Trame_Hauteur]; } void Set_mouse_position(void) diff --git a/gfx2.cfg b/gfx2.cfg index b9bb826e6d36723a810b11da974ee4acbf45e3ed..8f3f184eed68ebf2f274e61c35deac2ffd8a05f2 100644 GIT binary patch delta 112 zcmaDK@IGKe5{n!IBLfoyGXo0)D+3z?I|By;Cj%D)HvLE6oa;Ud^r7#Sy5sQh7NU|?ZjoLr{zZ*!^IFGc_w C_7#Bu