Home
last modified time | relevance | path

Searched refs:screenArea (Results 1 – 25 of 48) sorted by relevance

12

/dports/games/brumbrumrally/brumbrumrally-0.7/src/
H A DScaler.cpp53 screenArea.w = w; in update()
54 screenArea.h = h; in update()
85 screenArea.x = (w - screenArea.w) / 2; in update()
86 screenArea.y = (h - screenArea.h) / 2; in update()
230 int dstPaddingX = (screenArea.w / source->w) + ((screenArea.w % source->w) != 0 ? 1 : 0); in stretchArea()
231 int dstPaddingY = (screenArea.h / source->h) + ((screenArea.h % source->h) != 0 ? 1 : 0); in stretchArea()
235 if (dstArea.x < screenArea.x) in stretchArea()
238 dstArea.x = screenArea.x; in stretchArea()
240 Uint16 mx = screenArea.x + screenArea.w - dstArea.x; in stretchArea()
251 dstArea.y = screenArea.y; in stretchArea()
[all …]
H A DScaler.h34 inline int src2dst_x(int x) const { return x * screenArea.w / GAME_WIDTH + screenArea.x; }; in src2dst_x()
35 inline int src2dst_y(int y) const { return y * screenArea.h / GAME_HEIGHT + screenArea.y; }; in src2dst_y()
36 inline int dst2src_x(int x) const { return (x - screenArea.x) * GAME_WIDTH / screenArea.w; }; in dst2src_x()
37 inline int dst2src_y(int y) const { return (y - screenArea.y) * GAME_HEIGHT / screenArea.h; }; in dst2src_y()
50 SDL_Rect screenArea; variable
H A DNearestNeighbor.cpp102 dstArea.x = screenArea.x + srcArea.x * zoom; in renderZoom()
103 dstArea.y = screenArea.y + srcArea.y * zoom; in renderZoom()
110 zoomBlit24(srcArea, zoom, screenArea.x, screenArea.y, src, dest); in renderZoom()
113 zoomBlit<Uint32>(srcArea, zoom, screenArea.x, screenArea.y, src, dest); in renderZoom()
H A DHqx.cpp96 dstArea.x = screenArea.x + srcArea.x * zoom; in renderZoom()
97 dstArea.y = screenArea.y + srcArea.y * zoom; in renderZoom()
101 renderZoom(srcArea, zoom, screenArea.x, screenArea.y, source, destination); in renderZoom()
H A DBilinear.cpp125 double xStep = static_cast<double>(GAME_WIDTH) / screenArea.w; in renderStretchT()
126 double yStep = static_cast<double>(GAME_HEIGHT) / screenArea.h; in renderStretchT()
128 double xDistanceStart = (xStart - xOffset - screenArea.x) * xStep; in renderStretchT()
132 double yDistance1 = (yStart - yOffset - screenArea.y) * yStep; in renderStretchT()
H A DBilinearLessBlur.cpp126 double xStep = static_cast<double>(GAME_WIDTH) / screenArea.w; in renderStretchT()
127 double yStep = static_cast<double>(GAME_HEIGHT) / screenArea.h; in renderStretchT()
129 double xDistanceStart = (xStart - xOffset - screenArea.x) * xStep; in renderStretchT()
133 double _yDistance1 = (yStart - yOffset - screenArea.y) * yStep; in renderStretchT()
/dports/cad/magic/magic-8.3.245/dbwind/
H A DDBWtools.c700 if ((screenArea.r_xbot == screenArea.r_xtop) &&
701 (screenArea.r_ybot == screenArea.r_ytop))
705 GEO_EXPAND(&screenArea, 1, &screenArea);
716 if (((screenArea.r_xtop != screenArea.r_xbot) &&
717 (screenArea.r_xtop < screenArea.r_xbot + 4))
718 || ((screenArea.r_ytop != screenArea.r_ybot) &&
719 (screenArea.r_ytop < screenArea.r_ybot + 4)))
729 side = screenArea;
738 side = screenArea;
748 side = screenArea;
[all …]
H A DDBWelement.c338 Rect screenArea; local
375 screenArea.r_xbot += offx;
385 if ((screenArea.r_xbot <= screenArea.r_xtop) &&
386 (screenArea.r_ybot <= screenArea.r_ytop))
400 GrFastBox(&screenArea);
411 GrClipLine(screenArea.r_xbot, screenArea.r_ybot,
412 screenArea.r_xtop, screenArea.r_ytop);
439 (screenArea.r_xtop - screenArea.r_xbot));
534 if ((screenArea.r_xbot <= screenArea.r_xtop) &&
535 (screenArea.r_ybot <= screenArea.r_ytop))
[all …]
H A DDBWfdback.c129 Rect worldArea, screenArea, tmp; local
187 screenArea.r_xbot = (int)((x/curScale + window->w_origin.p_x) >> SUBPIXELBITS);
189 screenArea.r_xtop = (int)((x/curScale + window->w_origin.p_x) >> SUBPIXELBITS);
198 if (screenArea.r_xtop < screenArea.r_xbot ||
199 screenArea.r_ytop < screenArea.r_ybot)
228 GrDiagonal(&screenArea, fb->fb_style);
237 GrClipLine(screenArea.r_xbot, screenArea.r_ytop,
238 screenArea.r_xtop, screenArea.r_ybot);
240 GrClipLine(screenArea.r_xbot, screenArea.r_ybot,
241 screenArea.r_xtop, screenArea.r_ytop);
[all …]
H A DDBWdisplay.c1435 Rect screenArea; local
1469 screenArea.r_xbot--;
1470 screenArea.r_ybot--;
1471 screenArea.r_xtop++;
1472 screenArea.r_ytop++;
1586 Rect screenArea, textArea; local
1600 screenArea.r_xbot += textArea.r_xbot;
1601 screenArea.r_ybot += textArea.r_ybot;
1602 screenArea.r_xtop += textArea.r_xtop;
1603 screenArea.r_ytop += textArea.r_ytop;
[all …]
/dports/graphics/cegui/cegui-0.8.7/cegui/src/
H A DMouseCursor.cpp69 const Rectf screenArea(Vector2f(0, 0), in MouseCursor() local
71 d_geometry->setClippingRegion(screenArea); in MouseCursor()
74 setConstraintArea(&screenArea); in MouseCursor()
80 setPosition(Vector2f(screenArea.getWidth() / 2, in MouseCursor()
81 screenArea.getHeight() / 2)); in MouseCursor()
289 const Rectf screenArea(Vector2f(0, 0), new_size); in notifyDisplaySizeChanged() local
290 d_geometry->setClippingRegion(screenArea); in notifyDisplaySizeChanged()
/dports/x11-wm/plasma5-kwin/kwin-5.23.5/src/
H A Dabstract_client.cpp3305 center += screenArea.center(); in sendToOutput()
3314 keepInArea(screenArea); in sendToOutput()
3356 …QRect newGeometryRestore = QRect(screenArea.topLeft(), geometryRestore().size().boundedTo(screenAr… in updateGeometryRestoresForFullscreen()
3433 int topMax = screenArea.y(); in checkWorkspacePosition()
3434 int rightMax = screenArea.x() + screenArea.width(); in checkWorkspacePosition()
3435 int bottomMax = screenArea.y() + screenArea.height(); in checkWorkspacePosition()
3436 int leftMax = screenArea.x(); in checkWorkspacePosition()
3582 geom->moveLeft(screenArea.right() - screenArea.width()/4); in checkOffscreenPosition()
3584 geom->moveRight(screenArea.left() + screenArea.width()/4); in checkOffscreenPosition()
3587 geom->moveTop(screenArea.bottom() - screenArea.height()/4); in checkOffscreenPosition()
[all …]
/dports/graphics/Coin/coin-Coin-4.0.0/src/nodes/
H A DSoLevelOfDetail.cpp309 SO_NODE_ADD_FIELD(screenArea, (0)); in commonConstructor()
371 if (this->screenArea.getNum() == 0) { idx = 0; goto traverse; } in doAction()
398 n = SbMin(n, this->screenArea.getNum()); in doAction()
401 if (projarea > this->screenArea[i]) { idx = i; goto traverse; } in doAction()
560 if (nl->getLastField() != &this->screenArea) { in notify()
/dports/cad/magic/magic-8.3.245/netmenu/
H A DNMshowcell.c129 Rect area, screenArea; local
136 WindSurfaceToScreen(window, &area, &screenArea);
137 GrFastBox(&screenArea);
/dports/games/quake2lnx/quake2-r0.16.2/src/solaris/
H A Dndga.c51 NDestroyRegion(sp->screenArea); in ndga_destroy()
103 sp->screenArea = NCreateRegion(); in ndga_new()
112 NUnionRectWithRegion(&sp->screenRect, sp->screenArea, sp->screenArea); in ndga_new()
200 NIntersectRegion(sp->clip, sp->screenArea, sp->clip); in ndga_handle_change()
H A Dndga.h51 NRegion screenArea; member
/dports/games/quake2-source/quake2-r0.16.2/src/solaris/
H A Dndga.c51 NDestroyRegion(sp->screenArea); in ndga_destroy()
103 sp->screenArea = NCreateRegion(); in ndga_new()
112 NUnionRectWithRegion(&sp->screenRect, sp->screenArea, sp->screenArea); in ndga_new()
200 NIntersectRegion(sp->clip, sp->screenArea, sp->clip); in ndga_handle_change()
H A Dndga.h51 NRegion screenArea; member
/dports/graphics/Coin/coin-Coin-4.0.0/include/Inventor/nodes/
H A DSoLevelOfDetail.h53 SoMFFloat screenArea; variable
/dports/cad/magic/magic-8.3.245/select/
H A DselDisplay.c94 Rect planeArea, screenArea, selArea; local
158 WindSurfaceToScreen(window, &tmpr, &screenArea);
160 DBWDrawLabel(label, &screenArea, label->lab_just,
/dports/graphics/Coin/coin-Coin-4.0.0/models/oiv_compliance/
H A Dlevelofdetail.iv10 screenArea [ 2000, 1000, 500, 250 ]
/dports/games/nethack34-nox11/nethack-3.4.3/sys/mac/
H A Dmacwin.c492 Rect screenArea; in SanePositions()
497 screenArea = GetQDGlobalsScreenBits(&qbitmap)->bounds; in SanePositions()
498 OffsetRect (&screenArea, - screenArea.left, - screenArea.top); in SanePositions()
506 left = (screenArea.right - width) / 2; in SanePositions()
518 height = screenArea.bottom - top - (small_screen ? 2-SBARHEIGHT : 2); in SanePositions()
524 left = screenArea.right - width; in SanePositions()
525 top = screenArea.bottom - MIN_HEIGHT; in SanePositions()
555 left = screenArea.right - 3 - in SanePositions()
562 while (top > screenArea.bottom - MIN_HEIGHT) { in SanePositions()
563 top -= screenArea.bottom - mbar_height * 2; in SanePositions()
/dports/games/nethack34/nethack-3.4.3/sys/mac/
H A Dmacwin.c492 Rect screenArea; in SanePositions()
497 screenArea = GetQDGlobalsScreenBits(&qbitmap)->bounds; in SanePositions()
498 OffsetRect (&screenArea, - screenArea.left, - screenArea.top); in SanePositions()
506 left = (screenArea.right - width) / 2; in SanePositions()
518 height = screenArea.bottom - top - (small_screen ? 2-SBARHEIGHT : 2); in SanePositions()
524 left = screenArea.right - width; in SanePositions()
525 top = screenArea.bottom - MIN_HEIGHT; in SanePositions()
555 left = screenArea.right - 3 - in SanePositions()
562 while (top > screenArea.bottom - MIN_HEIGHT) { in SanePositions()
563 top -= screenArea.bottom - mbar_height * 2; in SanePositions()
/dports/games/unnethack/unnethack-5.1.0-20131208/sys/unsupported/mac/
H A Dmacwin.c492 Rect screenArea; in SanePositions()
497 screenArea = GetQDGlobalsScreenBits(&qbitmap)->bounds; in SanePositions()
498 OffsetRect (&screenArea, - screenArea.left, - screenArea.top); in SanePositions()
506 left = (screenArea.right - width) / 2; in SanePositions()
518 height = screenArea.bottom - top - (small_screen ? 2-SBARHEIGHT : 2); in SanePositions()
524 left = screenArea.right - width; in SanePositions()
525 top = screenArea.bottom - MIN_HEIGHT; in SanePositions()
555 left = screenArea.right - 3 - in SanePositions()
562 while (top > screenArea.bottom - MIN_HEIGHT) { in SanePositions()
563 top -= screenArea.bottom - mbar_height * 2; in SanePositions()
/dports/games/vultures-eye/vulture-2.3.67/nethack/sys/mac/
H A Dmacwin.c492 Rect screenArea; in SanePositions()
497 screenArea = GetQDGlobalsScreenBits(&qbitmap)->bounds; in SanePositions()
498 OffsetRect (&screenArea, - screenArea.left, - screenArea.top); in SanePositions()
506 left = (screenArea.right - width) / 2; in SanePositions()
518 height = screenArea.bottom - top - (small_screen ? 2-SBARHEIGHT : 2); in SanePositions()
524 left = screenArea.right - width; in SanePositions()
525 top = screenArea.bottom - MIN_HEIGHT; in SanePositions()
555 left = screenArea.right - 3 - in SanePositions()
562 while (top > screenArea.bottom - MIN_HEIGHT) { in SanePositions()
563 top -= screenArea.bottom - mbar_height * 2; in SanePositions()

12