Commit 82408de786df12efa1f5f0ec9d0f5754f9c61bf7
- Diff rendering mode:
- inline
- side by side
src/xf86Wacom.c
(10 / 9)
|   | |||
| 150 | 150 | ||
| 151 | 151 | DBG(10, priv, "\n"); | |
| 152 | 152 | ||
| 153 | /* Verify Box */ | ||
| 153 | /* the following 4 blocks verify the box and | ||
| 154 | * initialize the area */ | ||
| 154 | 155 | if (priv->topX > bottomx) | |
| 155 | 156 | { | |
| 156 | area->topX = priv->topX = 0; | ||
| 157 | priv->topX = 0; | ||
| 157 | 158 | } | |
| 159 | area->topX = priv->topX; | ||
| 158 | 160 | ||
| 159 | 161 | if (priv->topY > bottomy) | |
| 160 | 162 | { | |
| 161 | area->topY = priv->topY = 0; | ||
| 163 | priv->topY = 0; | ||
| 162 | 164 | } | |
| 165 | area->topY = priv->topY; | ||
| 163 | 166 | ||
| 164 | /* set unconfigured bottom to max */ | ||
| 165 | priv->bottomX = xf86SetIntOption(local->options, "BottomX", 0); | ||
| 166 | 167 | if (priv->bottomX < priv->topX || !priv->bottomX) | |
| 167 | 168 | { | |
| 168 | area->bottomX = priv->bottomX = bottomx; | ||
| 169 | priv->bottomX = bottomx; | ||
| 169 | 170 | } | |
| 171 | area->bottomX = priv->bottomX; | ||
| 170 | 172 | ||
| 171 | /* set unconfigured bottom to max */ | ||
| 172 | priv->bottomY = xf86SetIntOption(local->options, "BottomY", 0); | ||
| 173 | 173 | if (priv->bottomY < priv->topY || !priv->bottomY) | |
| 174 | 174 | { | |
| 175 | area->bottomY = priv->bottomY = bottomy; | ||
| 175 | priv->bottomY = bottomy; | ||
| 176 | 176 | } | |
| 177 | area->bottomY = priv->bottomY; | ||
| 177 | 178 | ||
| 178 | 179 | if (priv->twinview != TV_NONE) | |
| 179 | 180 | priv->numScreen = 2; |

