diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-26 22:31:01 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-26 22:31:01 +0000 |
commit | cc279c7aa6e04db390bed9bc28f3d2f48f2ea6d7 (patch) | |
tree | 1cfe922ec090a5eef886ca592616dab1e8190997 /crawl-ref/source/guic-x11.cc | |
parent | 54aec4d505c1ae364d89c2b464b24204c24e1f96 (diff) | |
download | crawl-ref-cc279c7aa6e04db390bed9bc28f3d2f48f2ea6d7.tar.gz crawl-ref-cc279c7aa6e04db390bed9bc28f3d2f48f2ea6d7.zip |
Kill hard tabs, and add whitespace fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6158 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/guic-x11.cc')
-rw-r--r-- | crawl-ref/source/guic-x11.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crawl-ref/source/guic-x11.cc b/crawl-ref/source/guic-x11.cc index 9093600d59..315cfb37b3 100644 --- a/crawl-ref/source/guic-x11.cc +++ b/crawl-ref/source/guic-x11.cc @@ -163,7 +163,7 @@ void MapRegionClass::resize_backbuf() } void TextRegionClass::draw_string(int x, int y, unsigned char *buf, - int len, int col) + int len, int col) { XFillRectangle(display, win->win, term_gc[col>>4], x*dx+ox, y*dy+oy, dx * len, dy); @@ -1040,9 +1040,9 @@ XImage *read_png (const char *fname) (info_ptr->sig_bit.red != info_ptr->sig_bit.green || info_ptr->sig_bit.red != info_ptr->sig_bit.blue) ) { - pm_message ("different bit depths for color channels not " + pm_message ("different bit depths for color channels not " "supported"); - pm_message ("writing file with %d bit resolution", + pm_message ("writing file with %d bit resolution", info_ptr->bit_depth); } else if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE @@ -1050,16 +1050,16 @@ XImage *read_png (const char *fname) { for (i = 0 ; i < info_ptr->num_palette ; i++) { - info_ptr->palette[i].red >>= (8 - info_ptr->sig_bit.red); - info_ptr->palette[i].green >>= (8 - info_ptr->sig_bit.green); - info_ptr->palette[i].blue >>= (8 - info_ptr->sig_bit.blue); - } + info_ptr->palette[i].red >>= (8 - info_ptr->sig_bit.red); + info_ptr->palette[i].green >>= (8 - info_ptr->sig_bit.green); + info_ptr->palette[i].blue >>= (8 - info_ptr->sig_bit.blue); + } } else if ((info_ptr->color_type == PNG_COLOR_TYPE_GRAY || info_ptr->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) && info_ptr->sig_bit.gray < info_ptr->bit_depth) { - png_set_shift (png_ptr, &(info_ptr->sig_bit)); + png_set_shift (png_ptr, &(info_ptr->sig_bit)); } } |