Fix some warnings.

Prepare to package future PDF Writer print driver as OBOS package:
openbeos-pdf_writer-cvs...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6154 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin 2004-01-19 21:53:54 +00:00
parent 6c54c57f07
commit cecbb5fb07
8 changed files with 34 additions and 9 deletions

View File

@ -1,3 +1,9 @@
SubDir OBOS_TOP src add-ons print drivers pdf ;
SubInclude OBOS_TOP src add-ons print drivers pdf source ;
SubInclude OBOS_TOP src add-ons print drivers pdf bookmarks ;
SubInclude OBOS_TOP src add-ons print drivers pdf encoding ;
SubInclude OBOS_TOP src add-ons print drivers pdf xrefs ;
Package openbeos-pdf_writer-cvs :
README TODO CHANGES ;

View File

@ -0,0 +1,5 @@
SubDir OBOS_TOP src add-ons print drivers pdf bookmarks ;
Package openbeos-pdf_writer-cvs :
Sample :
boot home config settings PDF_Writer bookmarks ;

View File

@ -0,0 +1,6 @@
SubDir OBOS_TOP src add-ons print drivers pdf encoding ;
Package openbeos-pdf_writer-cvs :
t1enc0.enc t1enc1.enc t1enc2.enc t1enc3.enc t1enc4.enc
ttenc0.cpg ttenc1.cpg ttenc2.cpg ttenc3.cpg ttenc4.cpg :
boot home config settings PDF_Writer encoding ;

View File

@ -54,7 +54,7 @@ AdvancedSettingsWindow::AdvancedSettingsWindow(BMessage *settings)
BRect r;
BBox *panel;
BButton *button;
BCheckBox *cb;
// BCheckBox *cb;
BMenuField *mf;
float x, y, w, h;
fSettings = settings;

View File

@ -87,7 +87,7 @@ DocInfoWindow::DocInfoWindow(BMessage *doc_info)
{
// ---- Ok, build a default page setup user interface
BRect r;
BBox *panel;
// BBox *panel;
BTabView *tabView;
BString permissions;
fDocInfo = doc_info;
@ -161,8 +161,8 @@ DocInfoWindow::SetupButtons(BBox* panel) {
void
DocInfoWindow::SetupDocInfoView(BBox* panel) {
BButton *button;
float x, y, w, h;
// BButton *button;
// float x, y, w, h;
BRect r(panel->Bounds());

View File

@ -1,7 +1,6 @@
SubDir OBOS_TOP src add-ons print drivers pdf source ;
AddResources PDF\ Writer :
# PDFWriter.rsrc
PDFWriter.rdef
;
@ -55,3 +54,8 @@ LinkSharedOSLibs
;
# /boot/home/config/lib/libpdf.so
Package openbeos-pdf_writer-cvs :
PDF\ Writer :
boot home config add-ons Print ;

View File

@ -1599,11 +1599,10 @@ PDFWriter::GetImages(BRect src, int32 /*width*/, int32 /*height*/, int32 bytesPe
int32 width = src.IntegerWidth() + 1;
int32 height = src.IntegerHeight() + 1;
int length;
int bpc;
int length = 0;
int bpc = 0;
if (HasAlphaChannel(pixelFormat)) {
if (NeedsBPC1Mask(pixelFormat) || !SupportsSoftMask()) {
int32 w = (width+7)/8;

View File

@ -0,0 +1,5 @@
SubDir OBOS_TOP src add-ons print drivers pdf xrefs ;
Package openbeos-pdf_writer-cvs :
English Deutsch :
boot home config settings PDF_Writer xrefs ;