Re: RI: gdk_screen_get_resolution()



On Mon, May 4, 2009 at 4:58 AM, Davyd Madeley <davyd madeley id au> wrote:
> There is a pending TODO to replace
> gdk_screen_get_resolution()/set_resolution() with monitor specific
> versions.
>
> API has been added for
> get_resolution_for_monitor()/set_resolution_for_monitor(), but they're
> currently stubs that affect the global resolution. Does anyone have any
> ideas on how they might be implemented without breaking get_resolution()
> and screen->resolution ?
>

I don't think there are any great options. You could:

1) return -1 if there are different per-monitor resolutions

2) return the resolution of the primary (thats an xrandr 1.3 concept)
monitor of the screen

3) deprecate gdk_screen_get_resolution and fix all callers


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]