mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-05 05:37:53 +08:00
fix View::HorizontalFadingEdge
This commit is contained in:
parent
fd429b8199
commit
4eacdacd4a
@ -394,9 +394,9 @@ void BitmapDrawable::draw(Canvas&canvas){
|
||||
canvas.restore();
|
||||
|
||||
if(mTintFilter){
|
||||
mTintFilter->apply(canvas,mBounds);
|
||||
canvas.pop_group_to_source();
|
||||
canvas.paint();
|
||||
mTintFilter->apply(canvas,mBounds);
|
||||
canvas.pop_group_to_source();
|
||||
canvas.paint();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,77 +0,0 @@
|
||||
project('gui', 'c++',
|
||||
version: '2.0',
|
||||
meson_version : '>= 0.56.0',
|
||||
default_options: [ 'buildtype=debugoptimized'],
|
||||
)
|
||||
|
||||
fc_version = meson.project_version()
|
||||
version_arr = fc_version.split('.')
|
||||
|
||||
cc = meson.get_compiler('c')
|
||||
|
||||
|
||||
freetype_dep = dependency('freetype2', method: 'pkg-config', version: freetype_req, required: false)
|
||||
|
||||
fonts_conf = configuration_data()
|
||||
|
||||
|
||||
if not get_option('tools').disabled()
|
||||
subdir('fc-cache')
|
||||
subdir('fc-cat')
|
||||
subdir('fc-conflist')
|
||||
subdir('fc-list')
|
||||
subdir('fc-match')
|
||||
subdir('fc-pattern')
|
||||
subdir('fc-query')
|
||||
subdir('fc-scan')
|
||||
subdir('fc-validate')
|
||||
endif
|
||||
|
||||
if not get_option('tests').disabled()
|
||||
subdir('test')
|
||||
endif
|
||||
|
||||
subdir('conf.d')
|
||||
subdir('its')
|
||||
|
||||
# xgettext is optional (on Windows for instance)
|
||||
if find_program('xgettext', required : get_option('nls')).found()
|
||||
subdir('po')
|
||||
subdir('po-conf')
|
||||
endif
|
||||
|
||||
if not get_option('doc').disabled()
|
||||
subdir('doc')
|
||||
endif
|
||||
|
||||
configure_file(output: 'config.h', configuration: conf)
|
||||
|
||||
configure_file(output: 'fonts.conf',
|
||||
input: 'fonts.conf.in',
|
||||
configuration: fonts_conf,
|
||||
install_dir: fc_baseconfigdir,
|
||||
install: true)
|
||||
|
||||
install_data('fonts.dtd',
|
||||
install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'xml/fontconfig')
|
||||
)
|
||||
|
||||
fc_headers = [
|
||||
'fontconfig/fontconfig.h',
|
||||
'fontconfig/fcfreetype.h',
|
||||
'fontconfig/fcprivate.h',
|
||||
]
|
||||
|
||||
install_headers(fc_headers, subdir: meson.project_name())
|
||||
|
||||
# Summary
|
||||
if meson.version().version_compare('>= 0.53')
|
||||
doc_targets = get_variable('doc_targets', [])
|
||||
|
||||
summary({
|
||||
'Documentation': (doc_targets.length() > 0 ? doc_targets : false),
|
||||
'NLS': not get_option('nls').disabled(),
|
||||
'Tests': not get_option('tests').disabled(),
|
||||
'Tools': not get_option('tools').disabled(),
|
||||
}, section: 'General', bool_yn: true, list_sep: ', ')
|
||||
endif
|
@ -1,13 +0,0 @@
|
||||
# Common feature options
|
||||
option('doc', type : 'feature', value : 'auto', yield: true,
|
||||
description: 'Build documentation')
|
||||
option('doc-txt', type: 'feature', value: 'auto')
|
||||
option('doc-man', type: 'feature', value: 'auto')
|
||||
option('doc-pdf', type: 'feature', value: 'auto')
|
||||
option('doc-html', type: 'feature', value: 'auto')
|
||||
option('nls', type : 'feature', value : 'auto', yield: true,
|
||||
description : 'Enable native language support (translations)')
|
||||
option('tests', type : 'feature', value : 'auto', yield : true,
|
||||
description: 'Enable unit tests')
|
||||
option('tools', type : 'feature', value : 'auto', yield : true,
|
||||
description: 'Build command-line tools (fc-list, fc-query, etc.)')
|
@ -2960,7 +2960,7 @@ void View::draw(Canvas&canvas){
|
||||
if (drawLeft) {
|
||||
canvas.save();
|
||||
canvas.translate(left, bottom);
|
||||
canvas.rotate_degrees(90);
|
||||
canvas.rotate_degrees(-90);
|
||||
canvas.scale(1,fadeHeight * leftFadeStrength);
|
||||
canvas.set_source(fade);
|
||||
canvas.rectangle(0,0,bottom - top, length);
|
||||
@ -2971,7 +2971,7 @@ void View::draw(Canvas&canvas){
|
||||
if (drawRight) {
|
||||
canvas.save();
|
||||
canvas.translate(right, top);
|
||||
canvas.rotate_degrees(-90);
|
||||
canvas.rotate_degrees(90);
|
||||
canvas.scale(1, fadeHeight * rightFadeStrength);
|
||||
canvas.set_source(fade);
|
||||
canvas.rectangle(0,0,bottom - top,length);
|
||||
|
Loading…
Reference in New Issue
Block a user