forked from enlightenment/efl
ecore-drm: don't declare w & h integers if we don't need them.
We only use w & h if one of the dev->abs.rel_* axis values are less than zero, so let's not declare integers that we May not use until we need them. Signed-off-by: Chris Michael <devilhorns@comcast.net>
This commit is contained in:
parent
e5656ce0e7
commit
17ac41ad06
|
@ -100,12 +100,12 @@ _device_configure(Ecore_Drm_Evdev *edev)
|
||||||
static void
|
static void
|
||||||
_device_axis_update(Ecore_Drm_Evdev *dev)
|
_device_axis_update(Ecore_Drm_Evdev *dev)
|
||||||
{
|
{
|
||||||
int w, h;
|
|
||||||
|
|
||||||
if (!dev) return;
|
if (!dev) return;
|
||||||
|
|
||||||
if ((dev->abs.rel_w < 0) || (dev->abs.rel_h < 0))
|
if ((dev->abs.rel_w < 0) || (dev->abs.rel_h < 0))
|
||||||
{
|
{
|
||||||
|
int w = 0, h = 0;
|
||||||
|
|
||||||
ecore_drm_output_size_get(dev->seat->input->dev,
|
ecore_drm_output_size_get(dev->seat->input->dev,
|
||||||
dev->seat->input->dev->window, &w, &h);
|
dev->seat->input->dev->window, &w, &h);
|
||||||
if ((w) && (h))
|
if ((w) && (h))
|
||||||
|
|
Loading…
Reference in New Issue