Merge branch 'master' of github.com:buggins/dlangui

This commit is contained in:
Vadim Lopatin 2015-12-23 08:46:12 +03:00
commit 65d7802840
2 changed files with 7 additions and 4 deletions

View File

@ -227,6 +227,9 @@ class FileDialog : Dialog, CustomGridCellAdapter {
_fileList.setCellText(2, i, toUTF32(sz)); _fileList.setCellText(2, i, toUTF32(sz));
_fileList.setCellText(3, i, toUTF32(date)); _fileList.setCellText(3, i, toUTF32(date));
} }
if(_fileList.height > 0)
_fileList.scrollTo(0, 0);
_fileList.autoFitColumnWidths(); _fileList.autoFitColumnWidths();
_fileList.fillColumnWidth(1); _fileList.fillColumnWidth(1);
if (selectionIndex >= 0) if (selectionIndex >= 0)

View File

@ -855,11 +855,11 @@ struct GlyphCache
// maxv is 65 for win32 fonts, 256 for freetype // maxv is 65 for win32 fonts, 256 for freetype
import std.math; import std.math;
//--------------------------------- //---------------------------------
struct glyph_gamma_table(int maxv = 65) class glyph_gamma_table(int maxv = 65)
{ {
this(double gammaValue = 1.0) this(double gammaValue = 1.0)
{ {
gamma = gammaValue; gamma(gammaValue);
} }
@property double gamma() { return _gamma; } @property double gamma() { return _gamma; }
@property void gamma(double g) { @property void gamma(double g) {
@ -890,6 +890,6 @@ private:
__gshared glyph_gamma_table!65 _gamma65; __gshared glyph_gamma_table!65 _gamma65;
__gshared glyph_gamma_table!256 _gamma256; __gshared glyph_gamma_table!256 _gamma256;
__gshared static this() { __gshared static this() {
_gamma65 = glyph_gamma_table!65(1.0); _gamma65 = new glyph_gamma_table!65(1.0);
_gamma256 = glyph_gamma_table!256(1.0); _gamma256 = new glyph_gamma_table!256(1.0);
} }