Fixed '--noprint=yes' bug under Windows & BeOS
This commit is contained in:
parent
a5bd1408de
commit
2acdcaf60e
2 changed files with 10 additions and 5 deletions
|
|
@ -7,7 +7,11 @@ bill@newbreedsoftware.com
|
||||||
http://www.newbreedsoftware.com/tuxpaint/
|
http://www.newbreedsoftware.com/tuxpaint/
|
||||||
|
|
||||||
|
|
||||||
2004.May.09 (0.9.14) [cvs]
|
2004.May.13 (0.9.14) [cvs]
|
||||||
|
* Fixed "--noprint=yes" not working under Windows and BeOS.
|
||||||
|
Thanks to Adam Moore for pointing out this bug!
|
||||||
|
Bill Kendrick & Mark K. Kim
|
||||||
|
|
||||||
* Updated Makefile for easier install.
|
* Updated Makefile for easier install.
|
||||||
Mark K. Kim <tuxNO_SOLICITATIONpaint-dev@cbreak.org>
|
Mark K. Kim <tuxNO_SOLICITATIONpaint-dev@cbreak.org>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7225,6 +7225,7 @@ void do_eraser(int x, int y)
|
||||||
void reset_avail_tools(void)
|
void reset_avail_tools(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
int disallow_print = disable_print; /* set to 1 later if printer unavail */
|
||||||
|
|
||||||
for (i = 0; i < NUM_TOOLS; i++)
|
for (i = 0; i < NUM_TOOLS; i++)
|
||||||
{
|
{
|
||||||
|
|
@ -7255,17 +7256,17 @@ void reset_avail_tools(void)
|
||||||
|
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
disable_print = !IsPrinterAvailable();
|
if(!IsPrinterAvailable()) disallow_print = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __BEOS__
|
#ifdef __BEOS__
|
||||||
disable_print = !IsPrinterAvailable();
|
if(!IsPrinterAvailable()) disallow_print = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Disable print? */
|
/* Disable print? */
|
||||||
|
|
||||||
if (disable_print)
|
if (disallow_print)
|
||||||
tool_avail[TOOL_PRINT] = 0;
|
tool_avail[TOOL_PRINT] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue