les sames ne s'impriment pas avec juste le flag p mais seulement le o en plus

This commit is contained in:
Hugo LAMY
2019-05-29 16:36:04 +02:00
parent e7e944f1ac
commit 04a4fef38b
5 changed files with 28 additions and 9 deletions

View File

@@ -6,7 +6,7 @@
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/05/27 13:46:29 by hulamy #+# #+# */
/* Updated: 2019/05/28 09:57:40 by hulamy ### ########.fr */
/* Updated: 2019/05/29 16:25:52 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -30,7 +30,7 @@ t_fillist *print_tetri(t_fillist *list)
print = tmp->tetribit;
print <<= 16;
print_sized_map(&print, tmp->width, tmp->height, tmp->letter);
if (tmp->same)
if (tmp->same && list->dope[1])
{
print = tmp->same->tetribit;
print <<= 16;

View File

@@ -6,7 +6,7 @@
/* By: vmanzoni <vmanzoni@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/01 13:29:05 by vmanzoni #+# #+# */
/* Updated: 2019/05/29 15:52:44 by hulamy ### ########.fr */
/* Updated: 2019/05/29 15:55:03 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -23,9 +23,7 @@ void print_error(char *str)
}
/*
** Function that display error message *s on fd
** with more informations
** and exit program
** Function that display error message *s on fd with more informations
*/
void print_error_extended(int error, int *dope)

View File

@@ -6,7 +6,7 @@
/* By: vmanzoni <vmanzoni@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/13 12:09:46 by vmanzoni #+# #+# */
/* Updated: 2019/05/28 18:36:35 by hulamy ### ########.fr */
/* Updated: 2019/05/29 16:10:58 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -20,7 +20,7 @@ char *read_file(char *file)
{
char buf[BUFF_SIZE];
int fd;
size_t rv;
int rv;
int i;
char *result;

View File

@@ -6,7 +6,7 @@
/* By: hulamy <hulamy@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/27 20:47:22 by hulamy #+# #+# */
/* Updated: 2019/05/29 13:37:51 by vmanzoni ### ########.fr */
/* Updated: 2019/05/29 16:23:03 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -165,5 +165,6 @@ int search_map(t_fillist *list)
map[num] = 0;
i = fill_map(map, list, size++);
}
free(map);
return (print_binary_map(map, size, list->dope));
}

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.fillit</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>