Home
last modified time | relevance | path

Searched refs:shw_org (Results 1 – 10 of 10) sorted by relevance

/dports/games/maxr/maxr-0.2.9/src/
H A Ddrawingcache.cpp129 …td::max (vehicle.uiData->img_org[vehicle.dir]->h * zoom, vehicle.uiData->shw_org[vehicle.dir]->h *… in init()
130 …td::max (vehicle.uiData->img_org[vehicle.dir]->w * zoom, vehicle.uiData->shw_org[vehicle.dir]->w *… in init()
166 …int height = (int) std::max (building.uiData->img_org->h * zoom, building.uiData->shw_org->h * zoo… in init()
167 …int width = (int) std::max (building.uiData->img_org->w * zoom, building.uiData->shw_org->w * zoo… in init()
168 if (building.data.hasFrames) width = (int) (building.uiData->shw_org->w * zoom); in init()
H A Dloaddata.cpp1038 SDL_FillRect (ui.shw_org[n].get(), nullptr, 0x00FF00FF); in LoadVehicles()
1043 SDL_LockSurface (ui.shw_org[n].get()); in LoadVehicles()
1044 Uint32* ptr = static_cast<Uint32*> (ui.shw_org[n]->pixels); in LoadVehicles()
1051 SDL_UnlockSurface (ui.shw_org[n].get()); in LoadVehicles()
1053 SDL_SetSurfaceAlphaMod (ui.shw_org[n].get(), 50); in LoadVehicles()
1085 ui.shw_org[n] = LoadPCX (sTmpString); in LoadVehicles()
1086 ui.shw[n] = CloneSDLSurface (*ui.shw_org[n]); in LoadVehicles()
1091 ui.shw_org[n] = nullptr; in LoadVehicles()
1566 ui.shw_org = LoadPCX (sTmpString); in LoadBuildings()
1567 ui.shw = CloneSDLSurface (*ui.shw_org); in LoadBuildings()
[all …]
/dports/games/maxr/maxr-0.2.9/src/game/data/units/
H A Dvehicle.cpp217 int high = ((int) (Round (uiData->shw_org[dir]->w * zoomFactor) * (getFlightHeight() / 64.0f))); in render_shadow()
221 …blitWithPreScale (uiData->shw_org[dir].get(), uiData->shw[dir].get(), nullptr, surface, &tmp, zoom… in render_shadow()
227 …blitWithPreScale (uiData->shw_org[dir].get(), uiData->shw[dir].get(), &r, surface, &tmp, zoomFacto… in render_shadow()
230 …blitWithPreScale (uiData->shw_org[dir].get(), uiData->shw[dir].get(), nullptr, surface, &tmp, zoom… in render_shadow()
1431 for (size_t i = 0; i < shw_org.size(); ++i) shw_org[i] = std::move (other.shw_org[i]); in sVehicleUIData()
1440 for (size_t i = 0; i < shw_org.size(); ++i) shw_org[i] = std::move (other.shw_org[i]); in operator =()
1474 width = (int) (shw_org[i]->w * factor); in scaleSurfaces()
1475 height = (int) (shw_org[i]->h * factor); in scaleSurfaces()
1476 scaleSurface (shw_org[i].get(), shw[i].get(), width, height); in scaleSurfaces()
H A Dbuilding.cpp496 CHECK_SCALING (*uiData->shw, *uiData->shw_org, zoomFactor); in render()
1390 shw (std::move (other.shw)), shw_org (std::move (other.shw_org)), in sBuildingUIData()
1407 shw_org = std::move (other.shw_org); in operator =()
1425 scaleSurface (shw_org.get(), shw.get(), (int) (shw_org->w * factor), (int) (shw_org->h * factor)); in scaleSurfaces()
H A Dbuilding.h77 AutoSurface shw, shw_org; // Surfaces of the shadow member
H A Dvehicle.h96 std::array<AutoSurface, 8> shw, shw_org; // 8 Surfaces of shadows member
/dports/games/maxr/maxr-0.2.9/src/game/data/map/
H A Dmap.cpp51 shw_org(std::move(other.shw_org)), in sTerrain()
62 shw_org = std::move(other.shw_org); in operator =()
499 terrains[iNum].shw_org = AutoSurface (SDL_CreateRGBSurface (0, 64, 64, 8, 0, 0, 0, 0)); in copySrfToTerData()
500 SDL_SetColors (terrains[iNum].shw_org.get(), surface.format->palette->colors, 0, 256); in copySrfToTerData()
501 SDL_BlitSurface (&surface, nullptr, terrains[iNum].shw_org.get(), nullptr); in copySrfToTerData()
508 SDL_SetColors (terrains[iNum].shw_org.get(), palette_shw, 0, 256); in copySrfToTerData()
517 scaleSurface (t.shw_org.get(), t.shw.get(), pixelSize, pixelSize); in scaleSurfaces()
H A Dmap.h141 AutoSurface shw_org; /** the original surface of the terrain in the fog */ member
/dports/games/maxr/maxr-0.2.9/
H A DSDL2c.patch133 CHECK_SCALING (uiData->shw, uiData->shw_org, zoomFactor);
1045 + SDL_SetColorKey (ui.shw_org[n], SDL_TRUE, 0x00FF00FF);
1046 SDL_FillRect (ui.shw_org[n], NULL, 0x00FF00FF);
1051 SDL_UnlockSurface (ui.shw_org[n]);
1053 - SDL_SetAlpha (ui.shw_org[n], SDL_SRCALPHA, 50);
1055 + SDL_SetSurfaceAlphaMod (ui.shw_org[n], 50);
1073 ui.shw_org[n] = LoadPCX (sTmpString);
1074 ui.shw[n] = CloneSDLSurface (ui.shw_org[n]);
1153 ui.shw_org = LoadPCX (sTmpString);
1154 ui.shw = CloneSDLSurface (ui.shw_org);
[all …]
/dports/games/maxr/maxr-0.2.9/src/ui/graphical/game/widgets/
H A Dgamemapwidget.cpp979 scaleSurface (terrain.shw_org.get(), terrain.shw.get(), zoomedTileSize.x(), zoomedTileSize.y()); in drawTerrain()