-
Notifications
You must be signed in to change notification settings - Fork 558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GTK: make OSD scalable #769
Changes from 1 commit
f2bea21
ef6eb5f
ddd8004
17509e0
7252e1c
25a5d68
30979d1
21cceaf
7529f6b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,6 @@ project('desmume', | |
license: 'GPL2+', | ||
) | ||
|
||
add_global_arguments('-DHOST_LINUX', language: ['c', 'cpp']) | ||
|
||
dep_glib2 = dependency('glib-2.0') | ||
dep_sdl = dependency('sdl2') | ||
dep_pcap = dependency('pcap') | ||
|
@@ -22,6 +20,7 @@ dep_openal = dependency('openal', required: get_option('openal')) | |
dep_alsa = dependency('alsa', required: false) | ||
dep_soundtouch = dependency('soundtouch', required: false) | ||
dep_agg = dependency('libagg', required: false) | ||
dep_fontconfig = dependency('fontconfig', required: false) | ||
|
||
# XXX: something wrong with this one. | ||
#dep_lua = dependency('lua-5.1', required: false) | ||
|
@@ -205,7 +204,8 @@ endif | |
if dep_agg.found() | ||
dependencies += dep_agg | ||
add_global_arguments('-DHAVE_LIBAGG', language: ['c', 'cpp']) | ||
if get_option('frontend-gtk') | ||
if dep_fontconfig.found() | ||
dependencies += dep_fontconfig | ||
add_global_arguments('-DAGG2D_USE_VECTORFONTS', language: ['c', 'cpp']) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you add this unconditionally, so i wonder if it still compiles if not set. also how does it look like if not set ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe it's better to add meson option to use vector fonts then? On the other hand compiling without this define causes HUD to use only default raster font (as before) which exactly same thing that happens if application fails to locate vector font (monospace or sans) in the system. So maybe this define/check is not needed anymore. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i'd enable it unconditionally if fontconfig lib is found There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Done |
||
add_global_link_arguments('-laggfontfreetype', language: ['c', 'cpp']) | ||
endif | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this now read
256*aggDraw.screenBytesPerPixel
instead of 1024 ?oh, actually if bpp == 2, it should return T_AGG_RGB555 instead of T_AGG_RGBA
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. The problem is it's not a function, it's global object. Made a cheap workaround. Ideally this object should be allocated dynamically, but it can severely break other frontends.