identation
This commit is contained in:
parent
f234dd3db1
commit
1ab9ee4954
1 changed files with 9 additions and 9 deletions
18
src/Image.cc
18
src/Image.cc
|
@ -25,7 +25,7 @@
|
||||||
// stupid macros needed to access some functions in version 2 of the GNU C
|
// stupid macros needed to access some functions in version 2 of the GNU C
|
||||||
// library
|
// library
|
||||||
|
|
||||||
// $Id: Image.cc,v 1.7 2002/04/04 11:28:19 fluxgen Exp $
|
// $Id: Image.cc,v 1.8 2002/04/08 18:57:53 fluxgen Exp $
|
||||||
|
|
||||||
//use GNU extensions
|
//use GNU extensions
|
||||||
#ifndef _GNU_SOURCE
|
#ifndef _GNU_SOURCE
|
||||||
|
@ -100,8 +100,8 @@ BImage::BImage(BImageControl *c, unsigned int w, unsigned int h) {
|
||||||
cpccpc = cpc * cpc;
|
cpccpc = cpc * cpc;
|
||||||
|
|
||||||
control->getColorTables(&red_table, &green_table, &blue_table,
|
control->getColorTables(&red_table, &green_table, &blue_table,
|
||||||
&red_offset, &green_offset, &blue_offset,
|
&red_offset, &green_offset, &blue_offset,
|
||||||
&red_bits, &green_bits, &blue_bits);
|
&red_bits, &green_bits, &blue_bits);
|
||||||
|
|
||||||
if (control->getVisual()->c_class != TrueColor)
|
if (control->getVisual()->c_class != TrueColor)
|
||||||
control->getXColorTable(&colors, &ncolors);
|
control->getXColorTable(&colors, &ncolors);
|
||||||
|
@ -129,8 +129,8 @@ Pixmap BImage::render(BTexture *texture) {
|
||||||
|
|
||||||
Pixmap BImage::render_solid(BTexture *texture) {
|
Pixmap BImage::render_solid(BTexture *texture) {
|
||||||
Pixmap pixmap = XCreatePixmap(control->getBaseDisplay()->getXDisplay(),
|
Pixmap pixmap = XCreatePixmap(control->getBaseDisplay()->getXDisplay(),
|
||||||
control->getDrawable(), width,
|
control->getDrawable(), width,
|
||||||
height, control->getDepth());
|
height, control->getDepth());
|
||||||
if (pixmap == None) {
|
if (pixmap == None) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
I18n::instance()->getMessage(
|
I18n::instance()->getMessage(
|
||||||
|
@ -145,24 +145,24 @@ Pixmap BImage::render_solid(BTexture *texture) {
|
||||||
gcv.foreground = texture->getColor()->getPixel();
|
gcv.foreground = texture->getColor()->getPixel();
|
||||||
gcv.fill_style = FillSolid;
|
gcv.fill_style = FillSolid;
|
||||||
gc = XCreateGC(control->getBaseDisplay()->getXDisplay(), pixmap,
|
gc = XCreateGC(control->getBaseDisplay()->getXDisplay(), pixmap,
|
||||||
GCForeground | GCFillStyle, &gcv);
|
GCForeground | GCFillStyle, &gcv);
|
||||||
|
|
||||||
gcv.foreground = texture->getHiColor()->getPixel();
|
gcv.foreground = texture->getHiColor()->getPixel();
|
||||||
hgc = XCreateGC(control->getBaseDisplay()->getXDisplay(), pixmap,
|
hgc = XCreateGC(control->getBaseDisplay()->getXDisplay(), pixmap,
|
||||||
GCForeground, &gcv);
|
GCForeground, &gcv);
|
||||||
|
|
||||||
gcv.foreground = texture->getLoColor()->getPixel();
|
gcv.foreground = texture->getLoColor()->getPixel();
|
||||||
lgc = XCreateGC(control->getBaseDisplay()->getXDisplay(), pixmap,
|
lgc = XCreateGC(control->getBaseDisplay()->getXDisplay(), pixmap,
|
||||||
GCForeground, &gcv);
|
GCForeground, &gcv);
|
||||||
|
|
||||||
XFillRectangle(control->getBaseDisplay()->getXDisplay(), pixmap, gc, 0, 0,
|
XFillRectangle(control->getBaseDisplay()->getXDisplay(), pixmap, gc, 0, 0,
|
||||||
width, height);
|
width, height);
|
||||||
|
|
||||||
#ifdef INTERLACE
|
#ifdef INTERLACE
|
||||||
if (texture->getTexture() & BImage::INTERLACED) {
|
if (texture->getTexture() & BImage::INTERLACED) {
|
||||||
gcv.foreground = texture->getColorTo()->getPixel();
|
gcv.foreground = texture->getColorTo()->getPixel();
|
||||||
GC igc = XCreateGC(control->getBaseDisplay()->getXDisplay(), pixmap,
|
GC igc = XCreateGC(control->getBaseDisplay()->getXDisplay(), pixmap,
|
||||||
GCForeground, &gcv);
|
GCForeground, &gcv);
|
||||||
|
|
||||||
register unsigned int i = 0;
|
register unsigned int i = 0;
|
||||||
for (; i < height; i += 2)
|
for (; i < height; i += 2)
|
||||||
|
|
Loading…
Reference in a new issue